Skip to content

Transceiver Configuration

Transceiver configuration can be setup with depedency Injection, providing an instance of TransceiverConfiguration

csharp
public void Run(IServiceCollection services, CancellationToken cancellationToken)
{
    _ = services.AddTransceiver((config) =>
    {
        ITransceiverSetup setup = config.ConfigureSsl(new(IPAddress.Loopback, ServerPort));
        setup.SetupServer(false);
        setup.SetupClient();
    }, typeof(Program).Assembly);
    _ = services.Configure<TransceiverConfiguration>(cfg =>
    {
        cfg.CertificateThumbprint = CertificateThumbprint;
    });
    RunSamples(services, cancellationToken);
}

The description of the configuration properties are as follows:

PropertyDescription
CertificateThumbprintAllows to configure a certificate from the certification store Machine/Personal with the specified thumbprint.
OptimizeHelloSerializationAllows to configure messages with smaller traffic. This configuration is experimental.
RequestTimeoutConfigures request timeout.
NRetriesNumber of attempts transceiver will make when sending request/response to server and client.
DelayBetweenRetriesMsDelay between attemps.