winget-cli

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

IInstanceInitializer.cs (588B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 
      4 namespace Microsoft.Management.Deployment.Projection
      5 {
      6     public interface IInstanceInitializer
      7     {
      8         /// <summary>
      9         /// CLSID context.
     10         /// </summary>
     11         public ClsidContext Context { get; }
     12 
     13         /// <summary>
     14         /// Create an in-process or out-of process instance.
     15         /// </summary>
     16         /// <typeparam name="T">Projected class typ</typeparam>
     17         /// <returns>Projected class instance</returns>
     18         public T CreateInstance<T>() where T : new();
     19     }
     20 }