WCF Extension实现Context信息的传递(Artech.ContextPropagation)

时间:2015-04-17 07:42:27
【文件属性】:
文件名称:WCF Extension实现Context信息的传递(Artech.ContextPropagation)
文件大小:27KB
文件格式:ZIP
更新时间:2015-04-17 07:42:27
wcf client端的culture通过SOAP header传到service端,然后通过自定义的CallContextInitializer设置当前方法执行的线程culture。在client端,当前culture信息是通过OperationContext.Current.OutgoingMessageHeaders手工至于SOAP Header中
【文件预览】:
Artech.ContextPropagation
----Artech.ContextPropagation.sln(4KB)
----Artech.ContextPropagation.Client()
--------Program.cs(925B)
--------app.config(1006B)
--------Artech.ContextPropagation.Client.csproj(3KB)
--------Properties()
----Artech.ContextPropagation.suo(55KB)
----Artech.ContextPropagation.gpState(260B)
----Artech.ContextPropagation.Hosting()
--------Program.cs(637B)
--------app.config(2KB)
--------Artech.ContextPropagation.Hosting.csproj(3KB)
--------Properties()
----Artech.ContextPropagation()
--------ContextReceivalCallContextInitializer.cs(2KB)
--------ContextReceivalBehaviorAttribute.cs(1KB)
--------Artech.ContextPropagation.csproj(3KB)
--------ContextPropagationBehaviorElement.cs(959B)
--------ContextPropagationBehavior.cs(1KB)
--------ContextAttachmentMessageInspector.cs(2KB)
--------ApplicationContext.cs(2KB)
--------Properties()
----Artech.ContextPropagation.Services()
--------Artech.ContextPropagation.Services.csproj(3KB)
--------Service.cs(573B)
--------Properties()
----Artech.ContextPropagation.Contract()
--------IContracts.cs(302B)
--------Artech.ContextPropagation.Contract.csproj(3KB)
--------Properties()

网友评论