Beispiel #1
0
 private static IUnityContainer ConfigureTracing(this IUnityContainer container, ITracer tracer, ITracerContextManager tracerContextManager)
 {
     return(container.RegisterInstance(tracer)
            .RegisterInstance(tracerContextManager));
 }
 private static IUnityContainer ConfigureTracing(this IUnityContainer container, ITracer tracer, ITracerContextManager tracerContextManager)
 {
     return container.RegisterInstance(tracer)
                     .RegisterInstance(tracerContextManager);
 }
Beispiel #3
0
        public static IUnityContainer ConfigureUnity(ISettingsContainer settingsContainer, ITracer tracer, ITracerContextManager tracerContextManager)
        {
            IUnityContainer container      = new UnityContainer();
            var             massProcessors = new IMassProcessor[]
            {
                new TaskServiceJobsMassProcessor(container),
            };
            var storageSettings = settingsContainer.AsSettings <ISqlStoreSettingsAspect>();

            container.RegisterContexts()
            .AttachQueryableContainerExtension()
            .UseParameterResolvers(ParameterResolvers.Defaults)
            .ConfigureMetadata()
            .ConfigureSettingsAspects(settingsContainer)
            .ConfigureTracing(tracer, tracerContextManager)
            .ConfigureSecurityAspects()
            .ConfigureQuartz()
            .ConfigureIdentityInfrastructure()
            .ConfigureWcf()
            .ConfigureOperationsProcessing()
            .ConfigureStorage(storageSettings, EntryPointSpecificLifetimeManagerFactory)
            .ConfigureReplication(EntryPointSpecificLifetimeManagerFactory);

            ReplicationRoot.Instance.PerformTypesMassProcessing(massProcessors, true, typeof(object));

            return(container);
        }
        public static IUnityContainer ConfigureUnity(ISettingsContainer settingsContainer, ITracer tracer, ITracerContextManager tracerContextManager)
        {
            IUnityContainer container = new UnityContainer();
            var massProcessors = new IMassProcessor[]
                                 {
                                     new TaskServiceJobsMassProcessor(container),
                                 };
            var storageSettings = settingsContainer.AsSettings<ISqlStoreSettingsAspect>();

            container.RegisterContexts()
                     .AttachQueryableContainerExtension()
                     .UseParameterResolvers(ParameterResolvers.Defaults)
                     .ConfigureMetadata()
                     .ConfigureSettingsAspects(settingsContainer)
                     .ConfigureTracing(tracer, tracerContextManager)
                     .ConfigureSecurityAspects()
                     .ConfigureQuartz()
                     .ConfigureIdentityInfrastructure()
                     .ConfigureWcf()
                     .ConfigureOperationsProcessing()
                     .ConfigureStorage(storageSettings, EntryPointSpecificLifetimeManagerFactory)
                     .ConfigureReplication(EntryPointSpecificLifetimeManagerFactory);

            ReplicationRoot.Instance.PerformTypesMassProcessing(massProcessors, true, typeof(object));

            return container;
        }