| | | 1 | | // Copyright (c) ZeroC, Inc. |
| | | 2 | | |
| | | 3 | | namespace IceRpc.Features; |
| | | 4 | | |
| | | 5 | | /// <summary>Default implementation of <see cref="IDispatchInformationFeature" />.</summary> |
| | | 6 | | public sealed class DispatchInformationFeature : IDispatchInformationFeature |
| | | 7 | | { |
| | | 8 | | /// <inheritdoc/> |
| | 0 | 9 | | public IConnectionContext ConnectionContext { get; } |
| | | 10 | | |
| | | 11 | | /// <inheritdoc/> |
| | 0 | 12 | | public string Fragment { get; } |
| | | 13 | | |
| | | 14 | | /// <inheritdoc/> |
| | 0 | 15 | | public bool IsOneway { get; } |
| | | 16 | | |
| | | 17 | | /// <inheritdoc/> |
| | 0 | 18 | | public string Operation { get; } |
| | | 19 | | |
| | | 20 | | /// <inheritdoc/> |
| | 8 | 21 | | public string Path { get; } |
| | | 22 | | |
| | | 23 | | /// <inheritdoc/> |
| | 8 | 24 | | public Protocol Protocol { get; } |
| | | 25 | | |
| | | 26 | | /// <summary>Constructs a dispatch information feature using an incoming request.</summary> |
| | | 27 | | /// <param name="request">The incoming request.</param> |
| | 56 | 28 | | public DispatchInformationFeature(IncomingRequest request) |
| | 56 | 29 | | { |
| | 56 | 30 | | ConnectionContext = request.ConnectionContext; |
| | 56 | 31 | | Fragment = request.Fragment; |
| | 56 | 32 | | IsOneway = request.IsOneway; |
| | 56 | 33 | | Operation = request.Operation; |
| | 56 | 34 | | Path = request.Path; |
| | 56 | 35 | | Protocol = request.Protocol; |
| | 56 | 36 | | } |
| | | 37 | | } |