Files
BeWoPlaner/BeWoLauncher/Security/LauncherSecurityHeaderEndpointBehavior.cs
rene 4fb9c98ee1 Projekte hinzugefügt:
- BeWoLauncher.csproj
- SharedLauncher.csproj
- LauncherHost.csproj
2021-11-22 15:50:34 +01:00

28 lines
878 B
C#

using System;
using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
namespace BeWoLauncher.Security
{
public class LauncherSecurityHeaderEndpointBehavior : IEndpointBehavior
{
public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
{
}
public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
{
clientRuntime.MessageInspectors.Add(new LauncherSecurityHeaderInterceptor());
}
public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
{
throw new NotImplementedException("This is a client behavior only");
}
public void Validate(ServiceEndpoint endpoint)
{
}
}
}