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