| | | 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 | | |
| | 33 | 12 | | public TransportConnectionInformation TransportConnectionInformation { get; } |
| | | 13 | | |
| | | 14 | | private readonly IProtocolConnection _protocolConnection; |
| | | 15 | | |
| | 889 | 16 | | internal ConnectionContext( |
| | 889 | 17 | | IProtocolConnection protocolConnection, |
| | 889 | 18 | | TransportConnectionInformation transportConnectionInformation) |
| | 889 | 19 | | { |
| | 889 | 20 | | _protocolConnection = protocolConnection; |
| | 889 | 21 | | TransportConnectionInformation = transportConnectionInformation; |
| | 889 | 22 | | } |
| | | 23 | | } |