Files
BeWoPlaner/Service/ServiceBehavior/WCFError/WCFErrorBehavior.cs
2025-03-19 09:35:01 +01:00

33 lines
834 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
using System.Text;
using System.Threading.Tasks;
namespace BeWo.Service.ServiceBehavior.WCFError
{
internal class WCFErrorBehavior : IEndpointBehavior
{
public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
{
}
public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
{
}
public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
{
endpointDispatcher.ChannelDispatcher.ErrorHandlers.Add(new WCFErrorHandler());
}
public void Validate(ServiceEndpoint endpoint)
{
}
}
}