Exemplo n.º 1
0
        internal DXVcsRepository(string serviceUrl)
        {
            this.serviceProvider = new DXVcsServiceProvider();
            bool isAdmin;

            this.serviceUrl = serviceUrl;

            ValidateService();
        }
Exemplo n.º 2
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, null));
        }