winget-cli

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

ApplySettingsResult.cs (1630B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="ApplySettingsResult.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.Management.Configuration.Processor.Unit
      8 {
      9     using Microsoft.Management.Configuration;
     10 
     11     /// <summary>
     12     /// Implements IApplySettingsResult.
     13     /// </summary>
     14     internal sealed partial class ApplySettingsResult : IApplySettingsResult
     15     {
     16         /// <summary>
     17         /// Initializes a new instance of the <see cref="ApplySettingsResult"/> class.
     18         /// </summary>
     19         /// <param name="unit">The configuration unit that the result is for.</param>
     20         public ApplySettingsResult(ConfigurationUnit unit)
     21         {
     22             this.Unit = unit;
     23         }
     24 
     25         /// <summary>
     26         /// Gets the configuration unit that the result is for.
     27         /// </summary>
     28         public ConfigurationUnit Unit { get; private set; }
     29 
     30         /// <inheritdoc/>
     31         public IConfigurationUnitResultInformation ResultInformation
     32         {
     33             get { return this.InternalResult; }
     34         }
     35 
     36         /// <summary>
     37         /// Gets the implementation object for ResultInformation.
     38         /// </summary>
     39         public ConfigurationUnitResultInformation InternalResult { get; } = new ConfigurationUnitResultInformation();
     40 
     41         /// <inheritdoc/>
     42         public bool RebootRequired { get; internal set; }
     43     }
     44 }