public DefaultShellContextFactory(ICompositionStrategy compositionStrategy, IShellContainerFactory shellContainerFactory, IShellDescriptorCache shellDescriptorCache, IEnumerable<IMinimumShellDescriptorProvider> minimumShellDescriptorProviders)
 {
     _compositionStrategy = compositionStrategy;
     _shellContainerFactory = shellContainerFactory;
     _shellDescriptorCache = shellDescriptorCache;
     _minimumShellDescriptorProviders = minimumShellDescriptorProviders;
     Logger = NullLogger.Instance;
 }
 public DefaultShellContextFactory(ICompositionStrategy compositionStrategy, IShellContainerFactory shellContainerFactory, IShellDescriptorCache shellDescriptorCache, IEnumerable <IMinimumShellDescriptorProvider> minimumShellDescriptorProviders)
 {
     _compositionStrategy             = compositionStrategy;
     _shellContainerFactory           = shellContainerFactory;
     _shellDescriptorCache            = shellDescriptorCache;
     _minimumShellDescriptorProviders = minimumShellDescriptorProviders;
     Logger = NullLogger.Instance;
 }
 public ShellContextFactory(
     IShellDescriptorCache shellDescriptorCache,
     ICompositionStrategy compositionStrategy,
     IShellContainerFactory shellContainerFactory) {
     _shellDescriptorCache = shellDescriptorCache;
     _compositionStrategy = compositionStrategy;
     _shellContainerFactory = shellContainerFactory;
     Logger = NullLogger.Instance;
 }
        public ShellDescriptorManager(IExtensionManager extensionManager, IEnumerable <IShellDescriptorManagerEventHandler> events, ShellSettings settings, IShellDescriptorCache shellDescriptorCache)
        {
            _extensionManager     = extensionManager;
            _events               = events;
            _settings             = settings;
            _shellDescriptorCache = shellDescriptorCache;

            T = NullLocalizer.Instance;
        }
 public ShellContextFactory(
     IShellDescriptorCache shellDescriptorCache,
     ICompositionStrategy compositionStrategy,
     IShellContainerFactory shellContainerFactory)
 {
     _shellDescriptorCache  = shellDescriptorCache;
     _compositionStrategy   = compositionStrategy;
     _shellContainerFactory = shellContainerFactory;
     Logger = NullLogger.Instance;
 }
Example #6
0
        public ShellContextFactory(
            IShellDescriptorCache shellDescriptorCache,
            IShellDescriptorManager shellDescriptorManager,
            ICompositionStrategy compositionStrategy,
            IOptions <SchubertOptions> options,
            ILoggerFactory loggerFactory)
        {
            Guard.ArgumentNotNull(shellDescriptorManager, nameof(shellDescriptorManager));
            Guard.ArgumentNotNull(shellDescriptorCache, nameof(shellDescriptorCache));
            Guard.ArgumentNotNull(compositionStrategy, nameof(compositionStrategy));
            Guard.ArgumentNotNull(options, nameof(options));

            _options                = options.Value;
            _compositionStrategy    = compositionStrategy;
            _shellDescriptorManager = shellDescriptorManager;
            _shellDescriptorCache   = shellDescriptorCache;
            _logger = loggerFactory?.CreateLogger <ShellContextFactory>() ?? (ILogger)NullLogger.Instance;
        }