< Summary

Information
Class: IceRpc.Transports.IDuplexServerTransport
Assembly: IceRpc
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Transports/IDuplexServerTransport.cs
Tag: 275_13775359185
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 29
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Total methods: 1
Method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Default()100%11100%

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Transports/IDuplexServerTransport.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3using IceRpc.Transports.Tcp;
 4using System.Net.Security;
 5
 6namespace IceRpc.Transports;
 7
 8/// <summary>A class to create a <see cref="IListener{T}" /> to accept incoming duplex connections.</summary>
 9public interface IDuplexServerTransport
 10{
 11    /// <summary>Gets the default duplex server transport.</summary>
 12    /// <value>The default duplex server transport is the <see cref="TcpServerTransport" />.</value>
 6313    public static IDuplexServerTransport Default { get; } = new TcpServerTransport();
 14
 15    /// <summary>Gets the transport's name.</summary>
 16    /// <value>The transport name.</value>
 17    string Name { get; }
 18
 19    /// <summary>Starts listening on a server address.</summary>
 20    /// <param name="serverAddress">The server address of the listener.</param>
 21    /// <param name="options">The duplex connection options.</param>
 22    /// <param name="serverAuthenticationOptions">The SSL server authentication options.</param>
 23    /// <returns>The new listener.</returns>
 24    /// <remarks>The IceRPC core can call this method concurrently so it must be thread-safe.</remarks>
 25    IListener<IDuplexConnection> Listen(
 26        ServerAddress serverAddress,
 27        DuplexConnectionOptions options,
 28        SslServerAuthenticationOptions? serverAuthenticationOptions);
 29}

Methods/Properties

get_Default()