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) { IUnityContainer container = new UnityContainer(); var massProcessors = new IMassProcessor[] { new TaskServiceJobsMassProcessor(container), }; var storageSettings = settingsContainer.AsSettings <ISqlStoreSettingsAspect>(); var connectionStringSettings = settingsContainer.AsSettings <IConnectionStringSettings>(); var environmentSettings = settingsContainer.AsSettings <IEnvironmentSettings>(); container.AttachQueryableContainerExtension() .UseParameterResolvers(ParameterResolvers.Defaults) .ConfigureMetadata() .ConfigureSettingsAspects(settingsContainer) .ConfigureTracing(tracer) .ConfigureSecurityAspects() .ConfigureQuartz() .ConfigureOperationsProcessing(connectionStringSettings, environmentSettings) .ConfigureStorage(storageSettings, EntryPointSpecificLifetimeManagerFactory) .ConfigureReplication(EntryPointSpecificLifetimeManagerFactory); ReplicationRoot.Instance.PerformTypesMassProcessing(massProcessors, true, typeof(object)); LinqToDB.Common.Configuration.Linq.OptimizeJoins = false; return(container); }
public static IUnityContainer ConfigureUnity(ISettingsContainer settingsContainer) { IUnityContainer container = new UnityContainer(); container.AttachQueryableContainerExtension() .UseParameterResolvers(new ParameterResolver[] { OperationServicesDependencyResolver } .Concat(AggregatesLayerParameterResolvers.Defaults) .Concat(ParameterResolvers.Defaults)); var massProcessors = new IMassProcessor[] { new AggregatesLayerMassProcessor(container, x => null), new EFDbModelMassProcessor(container) }; container .ConfigureSettingsAspects(settingsContainer) .ConfigureIndentityInfrastructure(EntryPointSpecificLifetimeManagerFactory) .ConfigureStorageLayer(EntryPointSpecificLifetimeManagerFactory) .ConfigureSecurityInfrastructure(); SampleAppRoot.Instance.PerformTypesMassProcessing(massProcessors, true, typeof(object)); SampleAppRoot.Instance.PerformTypesMassProcessing(massProcessors, false, typeof(object)); return container; }
public static IUnityContainer ConfigureUnity() { IUnityContainer container = new UnityContainer(); var massProcessors = new IMassProcessor[] { new TaskServiceJobsMassProcessor(container) }; container .ConfigureSettingsAspects(new ReplicationServiceSettings()) .AttachQueryableContainerExtension() .UseParameterResolvers(ParameterResolvers.Defaults) .ConfigureMetadata() .ConfigureTracing() .ConfigureSecurityAspects() .ConfigureQuartz() .ConfigureOperationsProcessing() .ConfigureStorage(EntryPointSpecificLifetimeManagerFactory) .ConfigureReplication(EntryPointSpecificLifetimeManagerFactory); ReplicationRoot.Instance.PerformTypesMassProcessing(massProcessors, true, typeof(object)); LinqToDB.Common.Configuration.Linq.OptimizeJoins = false; 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; }