Skip to content

Commit

Permalink
Fix IDE0220
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Oct 30, 2024
1 parent e9e657e commit e626ada
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void AddBindingParameters(ServiceDescription serviceDescription, ServiceH

public void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
{
foreach (ChannelDispatcher dispatcher in serviceHostBase.ChannelDispatchers)
foreach (var dispatcher in serviceHostBase.ChannelDispatchers.Cast<ChannelDispatcher>())
{
dispatcher.ErrorHandlers.Add(new ErrorHandler(this.handle, this.action));
}
Expand Down

0 comments on commit e626ada

Please sign in to comment.