|
1 | 1 | // Copyright (c) .NET Foundation. All rights reserved.
|
2 | 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
3 | 3 |
|
4 |
| -namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal |
| 4 | +namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions |
5 | 5 | {
|
| 6 | + public partial class FileHandleEndPoint : System.Net.EndPoint |
| 7 | + { |
| 8 | + public FileHandleEndPoint(ulong fileHandle, Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.FileHandleType fileHandleType) { } |
| 9 | + public ulong FileHandle { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } |
| 10 | + public Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.FileHandleType FileHandleType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } |
| 11 | + } |
6 | 12 | public enum FileHandleType
|
7 | 13 | {
|
8 | 14 | Auto = 0,
|
9 | 15 | Tcp = 1,
|
10 | 16 | Pipe = 2,
|
11 | 17 | }
|
12 |
| - public partial interface IApplicationTransportFeature |
13 |
| - { |
14 |
| - System.IO.Pipelines.IDuplexPipe Application { get; set; } |
15 |
| - } |
16 |
| - public partial interface IConnectionDispatcher |
17 |
| - { |
18 |
| - System.Threading.Tasks.Task OnConnection(Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.TransportConnection connection); |
19 |
| - } |
20 |
| - public partial interface IEndPointInformation |
21 |
| - { |
22 |
| - ulong FileHandle { get; } |
23 |
| - Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.FileHandleType HandleType { get; set; } |
24 |
| - System.Net.IPEndPoint IPEndPoint { get; set; } |
25 |
| - bool NoDelay { get; } |
26 |
| - string SocketPath { get; } |
27 |
| - Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.ListenType Type { get; } |
28 |
| - } |
29 |
| - public partial interface ITransport |
30 |
| - { |
31 |
| - System.Threading.Tasks.Task BindAsync(); |
32 |
| - System.Threading.Tasks.Task StopAsync(); |
33 |
| - System.Threading.Tasks.Task UnbindAsync(); |
34 |
| - } |
35 |
| - public partial interface ITransportFactory |
36 |
| - { |
37 |
| - Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.ITransport Create(Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.IEndPointInformation endPointInformation, Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.IConnectionDispatcher dispatcher); |
38 |
| - } |
39 |
| - public partial interface ITransportSchedulerFeature |
40 |
| - { |
41 |
| - System.IO.Pipelines.PipeScheduler InputWriterScheduler { get; } |
42 |
| - System.IO.Pipelines.PipeScheduler OutputReaderScheduler { get; } |
43 |
| - } |
| 18 | +} |
| 19 | +namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal |
| 20 | +{ |
44 | 21 | public static partial class KestrelMemoryPool
|
45 | 22 | {
|
46 | 23 | public static readonly int MinimumSegmentSize;
|
47 | 24 | public static System.Buffers.MemoryPool<byte> Create() { throw null; }
|
48 | 25 | public static System.Buffers.MemoryPool<byte> CreateSlabMemoryPool() { throw null; }
|
49 | 26 | }
|
50 |
| - public enum ListenType |
51 |
| - { |
52 |
| - IPEndPoint = 0, |
53 |
| - SocketPath = 1, |
54 |
| - FileHandle = 2, |
55 |
| - } |
56 |
| - public enum SchedulingMode |
57 |
| - { |
58 |
| - Default = 0, |
59 |
| - ThreadPool = 1, |
60 |
| - Inline = 2, |
61 |
| - } |
62 |
| - public abstract partial class TransportConnection : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IConnectionCompleteFeature, Microsoft.AspNetCore.Connections.Features.IConnectionHeartbeatFeature, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeNotificationFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IMemoryPoolFeature, Microsoft.AspNetCore.Http.Features.IFeatureCollection, Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature, Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.IApplicationTransportFeature, Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.ITransportSchedulerFeature, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Type, object>>, System.Collections.IEnumerable |
| 27 | + public abstract partial class TransportConnection : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IMemoryPoolFeature, Microsoft.AspNetCore.Http.Features.IFeatureCollection, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Type, object>>, System.Collections.IEnumerable |
63 | 28 | {
|
64 |
| - protected readonly System.Threading.CancellationTokenSource _connectionClosingCts; |
65 | 29 | public TransportConnection() { }
|
66 | 30 | public System.IO.Pipelines.IDuplexPipe Application { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
67 |
| - public System.Threading.CancellationToken ConnectionClosed { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
68 |
| - public System.Threading.CancellationToken ConnectionClosedRequested { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 31 | + public override System.Threading.CancellationToken ConnectionClosed { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
69 | 32 | public override string ConnectionId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
70 | 33 | public override Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get { throw null; } }
|
71 | 34 | public System.IO.Pipelines.PipeWriter Input { get { throw null; } }
|
72 |
| - public virtual System.IO.Pipelines.PipeScheduler InputWriterScheduler { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } |
73 | 35 | public override System.Collections.Generic.IDictionary<object, object> Items { get { throw null; } set { } }
|
74 |
| - public System.Net.IPAddress LocalAddress { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
75 |
| - public int LocalPort { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
76 |
| - protected internal virtual Microsoft.Extensions.Logging.ILogger Logger { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 36 | + public override System.Net.EndPoint LocalEndPoint { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
77 | 37 | public virtual System.Buffers.MemoryPool<byte> MemoryPool { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
78 | 38 | System.Collections.Generic.IDictionary<object, object> Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature.Items { get { throw null; } set { } }
|
79 | 39 | System.Threading.CancellationToken Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature.ConnectionClosed { get { throw null; } set { } }
|
80 |
| - System.Threading.CancellationToken Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeNotificationFeature.ConnectionClosedRequested { get { throw null; } set { } } |
81 | 40 | System.IO.Pipelines.IDuplexPipe Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature.Transport { get { throw null; } set { } }
|
82 | 41 | System.Buffers.MemoryPool<byte> Microsoft.AspNetCore.Connections.Features.IMemoryPoolFeature.MemoryPool { get { throw null; } }
|
83 | 42 | bool Microsoft.AspNetCore.Http.Features.IFeatureCollection.IsReadOnly { get { throw null; } }
|
84 | 43 | object Microsoft.AspNetCore.Http.Features.IFeatureCollection.this[System.Type key] { get { throw null; } set { } }
|
85 | 44 | int Microsoft.AspNetCore.Http.Features.IFeatureCollection.Revision { get { throw null; } }
|
86 |
| - string Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.ConnectionId { get { throw null; } set { } } |
87 |
| - System.Net.IPAddress Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.LocalIpAddress { get { throw null; } set { } } |
88 |
| - int Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.LocalPort { get { throw null; } set { } } |
89 |
| - System.Net.IPAddress Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.RemoteIpAddress { get { throw null; } set { } } |
90 |
| - int Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.RemotePort { get { throw null; } set { } } |
91 |
| - System.IO.Pipelines.IDuplexPipe Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.IApplicationTransportFeature.Application { get { throw null; } set { } } |
92 |
| - System.IO.Pipelines.PipeScheduler Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.ITransportSchedulerFeature.InputWriterScheduler { get { throw null; } } |
93 |
| - System.IO.Pipelines.PipeScheduler Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal.ITransportSchedulerFeature.OutputReaderScheduler { get { throw null; } } |
94 | 45 | public System.IO.Pipelines.PipeReader Output { get { throw null; } }
|
95 |
| - public virtual System.IO.Pipelines.PipeScheduler OutputReaderScheduler { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } |
96 |
| - public System.Net.IPAddress RemoteAddress { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
97 |
| - public int RemotePort { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
| 46 | + public override System.Net.EndPoint RemoteEndPoint { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } |
98 | 47 | public override System.IO.Pipelines.IDuplexPipe Transport { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
99 | 48 | public override void Abort(Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason) { }
|
100 |
| - public System.Threading.Tasks.Task CompleteAsync() { throw null; } |
101 |
| - void Microsoft.AspNetCore.Connections.Features.IConnectionCompleteFeature.OnCompleted(System.Func<object, System.Threading.Tasks.Task> callback, object state) { } |
102 |
| - void Microsoft.AspNetCore.Connections.Features.IConnectionHeartbeatFeature.OnHeartbeat(System.Action<object> action, object state) { } |
103 | 49 | void Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature.Abort() { }
|
104 |
| - void Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeNotificationFeature.RequestClose() { } |
105 | 50 | TFeature Microsoft.AspNetCore.Http.Features.IFeatureCollection.Get<TFeature>() { throw null; }
|
106 | 51 | void Microsoft.AspNetCore.Http.Features.IFeatureCollection.Set<TFeature>(TFeature feature) { }
|
107 |
| - public void OnHeartbeat(System.Action<object> action, object state) { } |
108 |
| - public void RequestClose() { } |
109 | 52 | System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.Type, object>> System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Type,System.Object>>.GetEnumerator() { throw null; }
|
110 | 53 | System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
|
111 |
| - public void TickHeartbeat() { } |
112 | 54 | }
|
113 | 55 | }
|
0 commit comments