• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Channels.AddressingVersion类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.ServiceModel.Channels.AddressingVersion的典型用法代码示例。如果您正苦于以下问题:C# AddressingVersion类的具体用法?C# AddressingVersion怎么用?C# AddressingVersion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AddressingVersion类属于System.ServiceModel.Channels命名空间,在下文中一共展示了AddressingVersion类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: CallbackContextMessageHeader

 public CallbackContextMessageHeader(EndpointAddress callbackAddress, AddressingVersion version)
 {
     if (callbackAddress == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("callbackAddress");
     }
     if (version == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("version");
     }
     if (version != AddressingVersion.WSAddressing10)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(System.ServiceModel.SR.GetString("CallbackContextOnlySupportedInWSAddressing10", new object[] { version })));
     }
     this.callbackAddress = callbackAddress;
     this.version = version;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:17,代码来源:CallbackContextMessageHeader.cs


示例17: ReadHeader

 public static ReplyToHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version, string actor, bool mustUnderstand, bool relay)
 {
     EndpointAddress replyTo = ReadHeaderValue(reader, version);
     if (((actor.Length != 0) || mustUnderstand) || relay)
     {
         return new FullReplyToHeader(replyTo, actor, mustUnderstand, relay, version);
     }
     if (replyTo != EndpointAddress.AnonymousAddress)
     {
         return new ReplyToHeader(replyTo, version);
     }
     if (version == AddressingVersion.WSAddressing10)
     {
         return AnonymousReplyTo10;
     }
     return AnonymousReplyTo200408;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:17,代码来源:ReplyToHeader.cs


示例18: ReadHeader

 public static ToHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version, UriCache uriCache, string actor, bool mustUnderstand, bool relay)
 {
     Uri to = ReadHeaderValue(reader, version, uriCache);
     if (((actor.Length != 0) || !mustUnderstand) || relay)
     {
         return new FullToHeader(to, actor, mustUnderstand, relay, version);
     }
     if (to != version.Anonymous)
     {
         return new ToHeader(to, version);
     }
     if (version == AddressingVersion.WSAddressing10)
     {
         return AnonymousTo10;
     }
     return AnonymousTo200408;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:17,代码来源:ToHeader.cs


示例19: CreateVersion

		public static MessageVersion CreateVersion (EnvelopeVersion envelope_version,
							    AddressingVersion addressing_version)
		{
			if (envelope_version == EnvelopeVersion.None && addressing_version == AddressingVersion.None)
				return None;
			if (envelope_version == EnvelopeVersion.Soap11 && addressing_version == AddressingVersion.None)
				return Soap11;
			if (envelope_version == EnvelopeVersion.Soap12 && addressing_version == AddressingVersion.WSAddressing10)
				return Soap12WSAddressing10;

			if (envelope_version == EnvelopeVersion.Soap12 && addressing_version == AddressingVersion.None)
				return Soap12;
			if (envelope_version == EnvelopeVersion.Soap11 && addressing_version == AddressingVersion.WSAddressing10)
				return Soap11WSAddressing10;
			if (envelope_version == EnvelopeVersion.Soap11 && addressing_version == AddressingVersion.WSAddressingAugust2004)
				return Soap11WSAddressingAugust2004;
			if (envelope_version == EnvelopeVersion.Soap12 && addressing_version == AddressingVersion.WSAddressingAugust2004)
				return Soap12WSAddressingAugust2004;
			throw new ArgumentException (string.Format ("EnvelopeVersion {0} cannot be used with AddressingVersion {1}", envelope_version, addressing_version));
		}
开发者ID:nlhepler,项目名称:mono,代码行数:20,代码来源:MessageVersion.cs


示例20: GetAddressingNamespace

 internal static string GetAddressingNamespace(AddressingVersion addressing)
 {
     string ns;
     if (addressing == AddressingVersion.WSAddressingAugust2004)
     {
         ns = "http://schemas.xmlsoap.org/ws/2004/08/addressing";
     }
     else if (addressing == AddressingVersion.WSAddressing10)
     {
         ns = "http://www.w3.org/2005/08/addressing";
     }
     else if (addressing == AddressingVersion.None)
     {
         ns = "http://schemas.microsoft.com/ws/2005/05/addressing/none";
     }
     else
     {
         throw FxTrace.Exception.Argument("addressing", SR2.AddressingVersionInvalid(addressing.ToString()));
     }
     return ns;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:21,代码来源:RoutingUtilities.cs



注:本文中的System.ServiceModel.Channels.AddressingVersion类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Channels.Binding类代码示例发布时间:2022-05-26
下一篇:
C# Dispatcher.WorkflowServiceInstance类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap