public Service() { if (dataContextFactory == null) { dataContextFactory = DataContextFactoryProvider.GetFactory(); if (dataContext == null) { dataContext = dataContextFactory.CreateMultiDc("DataContexts"); BaseServiceFactory.CreateBaseServiceFactories(); if (providerFactory == null) { providerFactory = AppServiceProviderFactoryProvider.GetFactory(); if (provider == null) { provider = providerFactory.Create(dataContext); } } } } }