Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginsServiceProvider"/> class.
 /// </summary>
 /// <param name="services">The services.</param>
 /// <param name="pluginManagers"></param>
 /// <param name="pluginServiceTypeCache"></param>
 public PluginsServiceProvider(IServiceCollection services, IPluginManagers pluginManagers, PluginSerivceTypeCache pluginServiceTypeCache)
 {
     this._services              = services;
     this.pluginManagers         = pluginManagers;
     this.pluginServiceTypeCache = pluginServiceTypeCache;
     aspectConfiguration         = new AspectConfiguration();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginServiceScope"/> class.
 /// </summary>
 /// <param name="serviceProvider">The service provider.</param>
 /// <param name="cache">The cache.</param>
 /// <param name="aspectConfiguration">The aspect configuration.</param>
 public PluginServiceScope(IServiceResolver serviceProvider, PluginSerivceTypeCache cache, AspectConfiguration aspectConfiguration)
 {
     this.serviceProvider     = serviceProvider.CreateScope();
     this.cache               = cache;
     this.aspectConfiguration = aspectConfiguration;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResolveProcess"/> class.
 /// </summary>
 /// <param name="plugin">The plugin.</param>
 /// <param name="pluginAssemblyCache">The plugin assembly cache.</param>
 public ResolveProcess(IPlugins plugin, PluginSerivceTypeCache pluginAssemblyCache)
 {
     this.plugins             = plugin;
     this.pluginAssemblyCache = pluginAssemblyCache;
 }