Files
hcs/Hcs.Client/ClientApi/RemoteCaller/GostSigningEndpointBehavior.cs
HOME-LAPTOP\kshkulev 33ab055b43 Add project
Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
2025-08-12 11:21:10 +09:00

35 lines
988 B
C#

using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
namespace Hcs.ClientApi.RemoteCaller
{
public class GostSigningEndpointBehavior : IEndpointBehavior
{
private HcsClientConfig clientConfig;
public GostSigningEndpointBehavior(HcsClientConfig clientConfig)
{
this.clientConfig = clientConfig;
}
public void Validate(ServiceEndpoint endpoint)
{
}
public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
{
}
public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
{
}
public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
{
clientRuntime.MessageInspectors.Add(
new GostSigningMessageInspector(clientConfig));
}
}
}