public OrderServiceClient()
        {
            var endpointConfigurationName = ConfigurationManager.AppSettings.Get(this.GetType().Name);

            this.adapter = new ServiceAdapter <IOrderService>(endpointConfigurationName);
        }
Ejemplo n.º 2
0
        public OrderStatusServiceClient()
        {
            var endpointConfigurationName = ConfigurationManager.AppSettings.Get(this.GetType().Name);

            this.adapter = new ServiceAdapter <IOrderStatusService>(endpointConfigurationName, CreateCallbackInstance);
        }
        public OrderNotificationClient(IOrderStatusCallback callback)
        {
            var endpointConfigurationName = ConfigurationManager.AppSettings.Get(this.GetType().Name);

            this.adapter = new ServiceAdapter <IOrderStatusService>(endpointConfigurationName, new InstanceContext(callback));
        }