/// <summary>
 /// Sets the parent of a scoped option-object
 /// </summary>
 /// <param name="parent">the global parent of this instance</param>
 public void SetParent(IPluginsInitOptions parent)
 {
     if (parent != null)
     {
         isGlobal    = false;
         this.parent = parent;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of hte UsePluginsInit class
 /// </summary>
 /// <param name="globalInit">the global PluginsInitOptions object</param>
 /// <param name="serviceProvider">the DI infrastructure</param>
 /// <param name="plugLogger">a loger instance that is used to log information from PluginsInit</param>
 public UsePluginsInit(IPluginsInitOptions globalInit, IServiceScopeFactory serviceProvider, ILogger <UsePluginsInit> plugLogger)
 {
     this.globalInit      = globalInit;
     this.serviceProvider = serviceProvider;
     this.plugLogger      = plugLogger;
 }