Exemplo n.º 1
0
 /// <summary>
 /// Initializes the message with the body.
 /// </summary>
 public CloseSecureChannelResponseMessage(CloseSecureChannelResponse CloseSecureChannelResponse)
 {
     this.CloseSecureChannelResponse = CloseSecureChannelResponse;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes the message with a service fault.
        /// </summary>
        public CloseSecureChannelResponseMessage(ServiceFault ServiceFault)
        {
            this.CloseSecureChannelResponse = new CloseSecureChannelResponse();

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

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

            return new CloseSecureChannelResponseMessage(body);
        }