예제 #1
0
 public static bool TryFromServiceMessageHeaders(ServiceRemotingMessageHeaders headers, out CustomServiceRequestHeader customServiceRequestHeader)
 {
     customServiceRequestHeader = (CustomServiceRequestHeader)null;
     byte[] headerValue;
     if (!headers.TryGetHeaderValue(CustomServiceRequestHeaderName, out headerValue))
     {
         return(false);
     }
     customServiceRequestHeader = new CustomServiceRequestHeader(headerValue);
     return(true);
 }