Exemplo n.º 1
0
        /// <summary>
        /// Invokes the Republish service.
        /// </summary>
        public IServiceResponse Republish(IServiceRequest incoming)
        {
            RepublishResponse response = null;

            RepublishRequest request = (RepublishRequest)incoming;

            NotificationMessage notificationMessage = null;

            response = new RepublishResponse();

            response.ResponseHeader = ServerInstance.Republish(
               request.RequestHeader,
               request.SubscriptionId,
               request.RetransmitSequenceNumber,
               out notificationMessage);

            response.NotificationMessage = notificationMessage;

            return response;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes the message with the body.
 /// </summary>
 public RepublishResponseMessage(RepublishResponse RepublishResponse)
 {
     this.RepublishResponse = RepublishResponse;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes the message with a service fault.
        /// </summary>
        public RepublishResponseMessage(ServiceFault ServiceFault)
        {
            this.RepublishResponse = new RepublishResponse();

            if (ServiceFault != null)
            {
                this.RepublishResponse.ResponseHeader = ServiceFault.ResponseHeader;
            }
        }
Exemplo n.º 4
0
        /// <summary cref="IServiceMessage.CreateResponse" />
        public object CreateResponse(IServiceResponse response)
        {
            RepublishResponse body = response as RepublishResponse;

            if (body == null)
            {
                body = new RepublishResponse();
                body.ResponseHeader = ((ServiceFault)response).ResponseHeader;
            }

            return new RepublishResponseMessage(body);
        }