Inheritance: System.MarshalByRefObject
Exemple #1
0
 internal DXVcsRepository(string serviceUrl, string user, string password)
 {
     this.serviceProvider = new DXVcsServiceProvider();
     this.serviceUrl = serviceUrl;
     this.user = user;
     this.password = password;
     ValidateService();
 }
 internal DXVcsRepository(string serviceUrl, string user, string password)
 {
     this.serviceProvider = new DXVcsServiceProvider();
     this.serviceUrl      = serviceUrl;
     this.user            = user;
     this.password        = password;
     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));
        }