internal DXVcsRepository(string serviceUrl) { this.serviceProvider = new DXVcsServiceProvider(); bool isAdmin; this.serviceUrl = serviceUrl; ValidateService(); }
static void CreateServiceProvider() { var domainSetup = new AppDomainSetup(); domainSetup.ApplicationBase = Path.GetDirectoryName(Assembly.GetAssembly(typeof(DXVcsServiceProvider)).Location); AppDomain domain = AppDomain.CreateDomain("DXVcsServiceProviderDomain", null, domainSetup); serviceProvider = ProcessWithAssemblyLoadingGuard(() => (DXVcsServiceProvider)domain.CreateInstanceAndUnwrap( typeof(DXVcsServiceProvider).Assembly.FullName, typeof(DXVcsServiceProvider).FullName, false, BindingFlags.Public | BindingFlags.Instance, null, null, null, null, null)); }