Ejemplo n.º 1
0
        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);
        }