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); }
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); }