Inheritance: System.MarshalByRefObject
コード例 #1
0
ファイル: DXVcsRepository.cs プロジェクト: Xarlot/DXVcs2Git
 internal DXVcsRepository(string serviceUrl, string user, string password)
 {
     this.serviceProvider = new DXVcsServiceProvider();
     this.serviceUrl = serviceUrl;
     this.user = user;
     this.password = password;
     ValidateService();
 }
コード例 #2
0
 internal DXVcsRepository(string serviceUrl, string user, string password)
 {
     this.serviceProvider = new DXVcsServiceProvider();
     this.serviceUrl      = serviceUrl;
     this.user            = user;
     this.password        = password;
     ValidateService();
 }
コード例 #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));
        }