public object CreateResponse(IServiceResponse response)
{
OpenSecureChannelResponse body = response as OpenSecureChannelResponse;
if (body == null)
{
body = new OpenSecureChannelResponse();
body.ResponseHeader = ((ServiceFault)response).ResponseHeader;
}
return new OpenSecureChannelResponseMessage(body);
}
#endregion