public static void OnDependencyMagic(IDependencyManager dependencyManager)
        {
            if ((object)dependencyManager == null)
            {
                throw new ArgumentNullException(nameof(dependencyManager));
            }

            dependencyManager.AddResolution <AsyncExecutableApplicationFascade>(string.Empty, false, new SingletonWrapperDependencyResolution <AsyncExecutableApplicationFascade>(TransientActivatorAutoWiringDependencyResolution <PipelineHostConsoleApplication> .From(dependencyManager)));
            dependencyManager.AddResolution <IToolHost>(string.Empty, false, new SingletonWrapperDependencyResolution <IToolHost>(TransientActivatorAutoWiringDependencyResolution <ToolHost> .From(dependencyManager)));
            dependencyManager.AddResolution <IAdoNetBufferingFascade>(string.Empty, false, new SingletonWrapperDependencyResolution <IAdoNetBufferingFascade>(TransientActivatorAutoWiringDependencyResolution <AdoNetBufferingFascade> .From(dependencyManager)));
        }
Ejemplo n.º 2
0
        public static void OnDependencyMagic(IDependencyManager dependencyManager)
        {
            if ((object)dependencyManager == null)
            {
                throw new ArgumentNullException(nameof(dependencyManager));
            }

            dependencyManager.AddResolution <TextMetalConsoleApplication>(string.Empty, false, new SingletonWrapperDependencyResolution <TextMetalConsoleApplication>(TransientActivatorAutoWiringDependencyResolution <TextMetalConsoleApplication> .From(dependencyManager)));
        }