[英]WCF extensions execution order
If i have few WCF extension modules of same kind (like parameter inspector) can i be sure they're executed in the order i define them in the configuration file? 如果我有几个相同类型的WCF扩展模块(如参数检查器),我可以确定它们是按照我在配置文件中定义它们的顺序执行的吗?
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="MyInspectorA" type="blabla" />
<add name="MyInspectorB" type="blabla" />
</behaviorExtensions>
</extensions>
</system.serviceModel>
I need more guaranties than just my observations but can't find any confirmations on MSDN. 我需要更多的保证,而不仅仅是我的观察,但在MSDN上找不到任何确认。
They'll be executed in the order they appear in the 它们将按照它们出现的顺序执行
<system.serviceModel> <behaviors> <[service|endpoint]Behaviors> <behavior> <behavior_1 /> <behavior_2 /> <behavior_n /> </behavior> </[service|endpoint]Behaviors> </behaviors> </system.serviceModel>
, not in the order listed in the behavior extensions. ,而不是行为扩展中列出的顺序。
And service behaviors are called before endpoint behaviors - the order among the behaviors is described in http://blogs.msdn.com/b/carlosfigueira/archive/2011/03/16/wcf-extensibility-behaviors.aspx . 在端点行为之前调用服务行为 - 行为之间的顺序在http://blogs.msdn.com/b/carlosfigueira/archive/2011/03/16/wcf-extensibility-behaviors.aspx中描述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.