static private GetPropertyKeyForHeader ( |
||
header | ||
Résultat | String |
private void FillHeaders(Header[] h, bool bFromHeaderHandler) { if (h == null) { return; } if (bFromHeaderHandler && this.fSoap) { foreach (Header header in h) { if (header.HeaderNamespace == "http://schemas.microsoft.com/clr/soap/messageProperties") { this.FillHeader(header.Name, header.Value); } else { string propertyKeyForHeader = LogicalCallContext.GetPropertyKeyForHeader(header); this.FillHeader(propertyKeyForHeader, header); } } return; } for (int j = 0; j < h.Length; j++) { this.FillHeader(h[j].Name, h[j].Value); } }
private void FillHeaders(Header[] h, bool bFromHeaderHandler) { if (h == null) { return; } if (bFromHeaderHandler && this.fSoap) { for (int index = 0; index < h.Length; ++index) { Header header = h[index]; if (header.HeaderNamespace == "http://schemas.microsoft.com/clr/soap/messageProperties") { this.FillHeader(header.Name, header.Value); } else { this.FillHeader(LogicalCallContext.GetPropertyKeyForHeader(header), (object)header); } } } else { for (int index = 0; index < h.Length; ++index) { this.FillHeader(h[index].Name, h[index].Value); } } }
internal void PropagateOutgoingHeadersToMessage(IMessage msg) { Header[] array = this.InternalGetOutgoingHeaders(); if (array != null) { IDictionary properties = msg.Properties; foreach (Header header in array) { if (header != null) { string propertyKeyForHeader = LogicalCallContext.GetPropertyKeyForHeader(header); properties[propertyKeyForHeader] = header; } } } }
internal void PropagateOutgoingHeadersToMessage(IMessage msg) { Header[] outgoingHeaders = this.InternalGetOutgoingHeaders(); if (outgoingHeaders == null) { return; } IDictionary properties = msg.Properties; foreach (Header header in outgoingHeaders) { if (header != null) { string propertyKeyForHeader = LogicalCallContext.GetPropertyKeyForHeader(header); properties[(object)propertyKeyForHeader] = (object)header; } } }