예제 #1
0
        public static ServiceFactoryHelper Create()
        {
            var serviceStub = new CustomerServiceStub();

            var customerServiceFactory = new DemoProxyFactory <ICustomerService>(serviceStub);

            var serviceFactory = new ServiceFactory <ICustomerService>(() => customerServiceFactory.Create());

            var factory = new ServiceFactoryHelper(serviceFactory, serviceStub);

            return(factory);
        }
예제 #2
0
		public static ServiceFactoryHelper Create()
		{
			var serviceStub = new CustomerServiceStub();

			var customerServiceFactory = new DemoProxyFactory<ICustomerService>(serviceStub);

			var serviceFactory = new ServiceFactory<ICustomerService>(() => customerServiceFactory.Create());

			var factory = new ServiceFactoryHelper(serviceFactory, serviceStub);

			return factory;
		}