Exemplo n.º 1
0
 private static void UseInProcessProxy()
 {
     var requiredService = new SomeRequiredService();
     var trialsServiceImpl = new TrialsService(
             new SingleProcessDeploymentOperationsManager(),
             requiredService,
             requiredService); 
     IProxyFactory<ITrialsService> proxyFactory = new InProcessProxyFactory<ITrialsService>(trialsServiceImpl);
     UseProxyFactory(proxyFactory);
 }
Exemplo n.º 2
0
        private static void UseInProcessProxy()
        {
            var requiredService   = new SomeRequiredService();
            var trialsServiceImpl = new TrialsService(
                new SingleProcessDeploymentOperationsManager(),
                requiredService,
                requiredService);
            IProxyFactory <ITrialsService> proxyFactory = new InProcessProxyFactory <ITrialsService>(trialsServiceImpl);

            UseProxyFactory(proxyFactory);
        }