/// <summary> /// Initializes the message with the body. /// </summary> public CloseSecureChannelResponseMessage(CloseSecureChannelResponse CloseSecureChannelResponse) { this.CloseSecureChannelResponse = CloseSecureChannelResponse; }
/// <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; } }
/// <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); }