| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | using IceRpc.Transports; |
| | 4 | |
|
| | 5 | | namespace IceRpc.Internal; |
| | 6 | |
|
| | 7 | | /// <summary>Implements <see cref="IConnectionContext" /> using a protocol connection.</summary> |
| | 8 | | internal sealed class ConnectionContext : IConnectionContext |
| | 9 | | { |
| 8 | 10 | | public IInvoker Invoker => _protocolConnection; |
| | 11 | |
|
| 37 | 12 | | public TransportConnectionInformation TransportConnectionInformation { get; } |
| | 13 | |
|
| | 14 | | private readonly IProtocolConnection _protocolConnection; |
| | 15 | |
|
| 891 | 16 | | internal ConnectionContext( |
| 891 | 17 | | IProtocolConnection protocolConnection, |
| 891 | 18 | | TransportConnectionInformation transportConnectionInformation) |
| 891 | 19 | | { |
| 891 | 20 | | _protocolConnection = protocolConnection; |
| 891 | 21 | | TransportConnectionInformation = transportConnectionInformation; |
| 891 | 22 | | } |
| | 23 | | } |