winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

PSConfigurationJob.cs (1656B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="PSConfigurationJob.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.WinGet.Configuration.Engine.PSObjects
      8 {
      9     using System.Threading.Tasks;
     10     using Microsoft.WinGet.Common.Command;
     11 
     12     /// <summary>
     13     /// This is a wrapper object for asynchronous task for this module.
     14     /// Contains the necessary information to continue the operation.
     15     /// </summary>
     16     public class PSConfigurationJob
     17     {
     18         /// <summary>
     19         /// Initializes a new instance of the <see cref="PSConfigurationJob"/> class.
     20         /// </summary>
     21         /// <param name="applyConfigTask">The apply configuration task.</param>
     22         /// <param name="startCommand">The start command.</param>
     23         internal PSConfigurationJob(
     24             Task<PSApplyConfigurationSetResult> applyConfigTask,
     25             PowerShellCmdlet startCommand)
     26         {
     27             this.ApplyConfigurationTask = applyConfigTask;
     28             this.StartCommand = startCommand;
     29         }
     30 
     31         /// <summary>
     32         /// Gets the running configuration task.
     33         /// </summary>
     34         internal Task<PSApplyConfigurationSetResult> ApplyConfigurationTask { get; private set; }
     35 
     36         /// <summary>
     37         /// Gets the command that started async operation.
     38         /// </summary>
     39         internal PowerShellCmdlet StartCommand { get; private set; }
     40     }
     41 }