當前位置: 首頁>>代碼示例>>C#>>正文


C# Channels.AddressingVersion類代碼示例

本文整理匯總了C#中System.ServiceModel.Channels.AddressingVersion的典型用法代碼示例。如果您正苦於以下問題:C# AddressingVersion類的具體用法?C# AddressingVersion怎麽用?C# AddressingVersion使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AddressingVersion類屬於System.ServiceModel.Channels命名空間,在下文中一共展示了AddressingVersion類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: CreateSequenceResponse

 public CreateSequenceResponse(AddressingVersion addressingVersion,
     ReliableMessagingVersion reliableMessagingVersion)
     : base(true)
 {
     this.addressingVersion = addressingVersion;
     this.reliableMessagingVersion = reliableMessagingVersion;
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:7,代碼來源:CreateSequenceResponse.cs

示例2: Create

 public static ActionHeader Create(XmlDictionaryString dictionaryAction, AddressingVersion addressingVersion)
 {
     if (dictionaryAction == null)
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("action"));
     if (addressingVersion == null)
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("addressingVersion");
     return new DictionaryActionHeader(dictionaryAction, addressingVersion);
 }
開發者ID:SoumikMukherjeeDOTNET,項目名稱:wcf,代碼行數:8,代碼來源:Addressing.cs

示例3: CreateSequence

 public CreateSequence(AddressingVersion addressingVersion, ReliableMessagingVersion reliableMessagingVersion, bool ordered, IClientReliableChannelBinder binder, UniqueId offerIdentifier) : base(true)
 {
     this.addressingVersion = addressingVersion;
     this.reliableMessagingVersion = reliableMessagingVersion;
     this.ordered = ordered;
     this.binder = binder;
     this.offerIdentifier = offerIdentifier;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:8,代碼來源:CreateSequence.cs

示例4: ReadHeaderValue

 public static string ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion addressingVersion)
 {
     string s = reader.ReadElementContentAsString();
     if ((s.Length <= 0) || ((s[0] > ' ') && (s[s.Length - 1] > ' ')))
     {
         return s;
     }
     return XmlUtil.Trim(s);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:9,代碼來源:ActionHeader.cs

示例5: ReadHeader

 public static ActionHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version, string actor, bool mustUnderstand, bool relay)
 {
     string action = ReadHeaderValue(reader, version);
     if (((actor.Length == 0) && mustUnderstand) && !relay)
     {
         return new ActionHeader(action, version);
     }
     return new FullActionHeader(action, actor, mustUnderstand, relay, version);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:9,代碼來源:ActionHeader.cs

示例6: ReadHeader

 public static MessageIDHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version, string actor, bool mustUnderstand, bool relay)
 {
     UniqueId messageId = ReadHeaderValue(reader, version);
     if (((actor.Length == 0) && !mustUnderstand) && !relay)
     {
         return new MessageIDHeader(messageId, version);
     }
     return new FullMessageIDHeader(messageId, actor, mustUnderstand, relay, version);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:9,代碼來源:MessageIDHeader.cs

示例7: ReadHeader

 public static FaultToHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version, string actor, bool mustUnderstand, bool relay)
 {
     EndpointAddress faultTo = ReadHeaderValue(reader, version);
     if (((actor.Length == 0) && !mustUnderstand) && !relay)
     {
         return new FaultToHeader(faultTo, version);
     }
     return new FullFaultToHeader(faultTo, actor, mustUnderstand, relay, version);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:9,代碼來源:FaultToHeader.cs

示例8: ReadHeader

 public static RelatesToHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version, string actor, bool mustUnderstand, bool relay)
 {
     System.Xml.UniqueId id;
     Uri uri;
     ReadHeaderValue(reader, version, out uri, out id);
     if (((actor.Length == 0) && !mustUnderstand) && (!relay && (uri == ReplyRelationshipType)))
     {
         return new RelatesToHeader(id, version);
     }
     return new FullRelatesToHeader(id, actor, mustUnderstand, relay, version);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:11,代碼來源:RelatesToHeader.cs

示例9: Create

 public static FaultToHeader Create(EndpointAddress faultTo, AddressingVersion addressingVersion)
 {
     if (faultTo == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("faultTo"));
     }
     if (addressingVersion == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("addressingVersion");
     }
     return new FaultToHeader(faultTo, addressingVersion);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:12,代碼來源:FaultToHeader.cs

示例10: Create

 public static ActionHeader Create(string action, AddressingVersion addressingVersion)
 {
     if (action == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("action"));
     }
     if (addressingVersion == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("addressingVersion");
     }
     return new ActionHeader(action, addressingVersion);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:12,代碼來源:ActionHeader.cs

示例11: Create

 public static RelatesToHeader Create(System.Xml.UniqueId messageId, AddressingVersion addressingVersion)
 {
     if (object.ReferenceEquals(messageId, null))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageId"));
     }
     if (addressingVersion == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("addressingVersion"));
     }
     return new RelatesToHeader(messageId, addressingVersion);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:12,代碼來源:RelatesToHeader.cs

示例12: ApplyAddressingVersion

 private static void ApplyAddressingVersion(MessageEncodingBindingElement encodingBindingElement, AddressingVersion addressingVersion)
 {
     EnvelopeVersion envelope = encodingBindingElement.MessageVersion.Envelope;
     if ((envelope == EnvelopeVersion.None) && (addressingVersion != AddressingVersion.None))
     {
         encodingBindingElement.MessageVersion = MessageVersion.CreateVersion(EnvelopeVersion.Soap12, addressingVersion);
     }
     else
     {
         encodingBindingElement.MessageVersion = MessageVersion.CreateVersion(envelope, addressingVersion);
     }
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:12,代碼來源:MessageEncodingBindingElementImporter.cs

示例13: ReadHeaderValue

 public static Uri ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version, UriCache uriCache)
 {
     string uriString = reader.ReadElementContentAsString();
     if (uriString == version.Anonymous)
     {
         return version.AnonymousUri;
     }
     if (uriCache == null)
     {
         return new Uri(uriString);
     }
     return uriCache.CreateUri(uriString);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:13,代碼來源:ToHeader.cs

示例14: GetActionHeader

 private static ActionHeader GetActionHeader(AddressingVersion addressingVersion, ReliableMessagingVersion reliableMessagingVersion, string element)
 {
     WsrmIndex index = null;
     if (reliableMessagingVersion == ReliableMessagingVersion.WSReliableMessagingFebruary2005)
     {
         if (addressingVersion == AddressingVersion.WSAddressingAugust2004)
         {
             if (wsAddressingAug2004WSReliableMessagingFeb2005 == null)
             {
                 wsAddressingAug2004WSReliableMessagingFeb2005 = new WsrmFeb2005Index(addressingVersion);
             }
             index = wsAddressingAug2004WSReliableMessagingFeb2005;
         }
         else if (addressingVersion == AddressingVersion.WSAddressing10)
         {
             if (wsAddressing10WSReliableMessagingFeb2005 == null)
             {
                 wsAddressing10WSReliableMessagingFeb2005 = new WsrmFeb2005Index(addressingVersion);
             }
             index = wsAddressing10WSReliableMessagingFeb2005;
         }
     }
     else
     {
         if (reliableMessagingVersion != ReliableMessagingVersion.WSReliableMessaging11)
         {
             throw Fx.AssertAndThrow("Reliable messaging version not supported.");
         }
         if (addressingVersion == AddressingVersion.WSAddressingAugust2004)
         {
             if (wsAddressingAug2004WSReliableMessaging11 == null)
             {
                 wsAddressingAug2004WSReliableMessaging11 = new Wsrm11Index(addressingVersion);
             }
             index = wsAddressingAug2004WSReliableMessaging11;
         }
         else if (addressingVersion == AddressingVersion.WSAddressing10)
         {
             if (wsAddressing10WSReliableMessaging11 == null)
             {
                 wsAddressing10WSReliableMessaging11 = new Wsrm11Index(addressingVersion);
             }
             index = wsAddressing10WSReliableMessaging11;
         }
     }
     if (index == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(System.ServiceModel.SR.GetString("AddressingVersionNotSupported", new object[] { addressingVersion })));
     }
     return index.GetActionHeader(element);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:51,代碼來源:WsrmIndex.cs

示例15: Create

 public static ToHeader Create(Uri to, AddressingVersion addressingVersion)
 {
     if (to == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("to"));
     }
     if (to != addressingVersion.AnonymousUri)
     {
         return new ToHeader(to, addressingVersion);
     }
     if (addressingVersion == AddressingVersion.WSAddressing10)
     {
         return AnonymousTo10;
     }
     return AnonymousTo200408;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:16,代碼來源:ToHeader.cs


注:本文中的System.ServiceModel.Channels.AddressingVersion類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。