public CompositeLog(CompositeApplication application, IComponentRegistry registry) { Check.NotNull(application, nameof(application)); Check.NotNull(registry, nameof(registry)); _application = application; _registry = registry; }
internal ModuleContext( ILoggerFactory loggerFactory, CompositeApplication compositeApp, Plugin plugin) { Check.NotNull(loggerFactory, nameof(loggerFactory)); Check.NotNull(compositeApp, nameof(compositeApp)); Check.NotNull(plugin, nameof(plugin)); _compositeApp = compositeApp; this.AppHost = compositeApp.AppHostPlugin; this.AllPluginModules = compositeApp.AllPluginModules; this.Plugin = plugin; this.LoggerFactory = loggerFactory; this.Logger = loggerFactory.CreateLogger(plugin.GetType()); this.AllPluginTypes = FilteredTypesByPluginType(); this.AllAppPluginTypes = GetAppPluginTypes(); }