You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched issues/discussions and did not find other issues/discussions reporting this bug.
Product version
1.5.1
Describe expected behavior
When adding an IEndpointBehavior to an endpoint, like in WCF, I would expect IEndpointBehavior's AddBindingParameters to be called before ApplyDispatchBehavior.
Describe actual behavior
In CoreWCF, the method AddBindingParameters is not called at all.
Looking through the code it looks to me like the source of the problem is that endpoint configuration is performed as part of EndpointConfiguratorEndpointBehavior's application. DispatcherBuilder.InitializeServiceHost calls AddBindingParameters only on the initial set of EndpointBehaviors (EndpointConfiguratorEndpointBehavior and EndpointAuthorizationBehavior), which doesn't include endpoints added in configureEndpoint. I'd imagine the solution should be to either not use a behavior to invoke the endpoint configuration, but rather call it right after creation or to move parameter binding to the same loop where behaviors are applied.
Duplicate ?
Product version
1.5.1
Describe expected behavior
When adding an IEndpointBehavior to an endpoint, like in WCF, I would expect IEndpointBehavior's AddBindingParameters to be called before ApplyDispatchBehavior.
Describe actual behavior
In CoreWCF, the method AddBindingParameters is not called at all.
Looking through the code it looks to me like the source of the problem is that endpoint configuration is performed as part of EndpointConfiguratorEndpointBehavior's application. DispatcherBuilder.InitializeServiceHost calls AddBindingParameters only on the initial set of EndpointBehaviors (EndpointConfiguratorEndpointBehavior and EndpointAuthorizationBehavior), which doesn't include endpoints added in configureEndpoint. I'd imagine the solution should be to either not use a behavior to invoke the endpoint configuration, but rather call it right after creation or to move parameter binding to the same loop where behaviors are applied.
Which binding
NetTcp
security
None
Which .NET version
.NET 6
Which os platform
Windows
Code snippet used to reproduce the issue
Stacktrace if any
No response
The text was updated successfully, but these errors were encountered: