Beispiel #1
0
        protected override void OnOpening()
        {
            foreach (IServiceBehavior behavior in m_ErrorHandlers)
            {
                Description.Behaviors.Add(behavior);
            }

            foreach (ServiceEndpoint endpoint in Description.Endpoints)
            {
                QueuedServiceHelper.VerifyQueue(endpoint);
            }
            base.OnOpening();
        }
Beispiel #2
0
        public ResponseScope(NetMsmqBinding binding)
        {
            ResponseContext responseContext = ResponseContext.Current;

            Debug.Assert(responseContext != null);

            EndpointAddress address = new EndpointAddress(responseContext.ResponseAddress);

            ChannelFactory <T> factory = new ChannelFactory <T>(binding, address);

            QueuedServiceHelper.VerifyQueue(factory.Endpoint);

            Response = factory.CreateChannel();

            //Switching context now
            m_Scope = new OperationContextScope(Response as IContextChannel);
            ResponseContext.Current = responseContext;
        }
Beispiel #3
0
 public ResponseClientBase(string responseAddress, NetMsmqBinding binding, EndpointAddress remoteAddress) : base(binding, remoteAddress)
 {
     ResponseAddress = responseAddress;
     QueuedServiceHelper.VerifyQueue(Endpoint);
 }
Beispiel #4
0
 public ResponseClientBase(string responseAddress, string endpointName, EndpointAddress remoteAddress) : base(endpointName, remoteAddress)
 {
     ResponseAddress = responseAddress;
     QueuedServiceHelper.VerifyQueue(Endpoint);
     Debug.Assert(Endpoint.Binding is NetMsmqBinding);
 }