4 implementations of IStreamAbortFeature
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
1091internal class TestStreamContext : ConnectionContext, IStreamDirectionFeature, IStreamIdFeature, IProtocolErrorCodeFeature, IPersistentStateFeature, IStreamAbortFeature, IDisposable, IStreamClosedFeature
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http3\Http3HttpProtocolFeatureCollectionTests.cs (1)
71private class TestConnectionFeatures : IProtocolErrorCodeFeature, IStreamIdFeature, IStreamAbortFeature, IStreamClosedFeature, IConnectionMetricsContextFeature
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
1091internal class TestStreamContext : ConnectionContext, IStreamDirectionFeature, IStreamIdFeature, IProtocolErrorCodeFeature, IPersistentStateFeature, IStreamAbortFeature, IDisposable, IStreamClosedFeature
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicStreamContext.FeatureCollection.cs (1)
15IStreamAbortFeature,
59 references to IStreamAbortFeature
InMemory.FunctionalTests (12)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
1157Features.Set<IStreamAbortFeature>(this); 1273void IStreamAbortFeature.AbortRead(long errorCode, ConnectionAbortedException abortReason) 1278void IStreamAbortFeature.AbortWrite(long errorCode, ConnectionAbortedException abortReason)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
36internal protected IStreamAbortFeature? _currentIStreamAbortFeature; 171else if (key == typeof(IStreamAbortFeature)) 235else if (key == typeof(IStreamAbortFeature)) 237_currentIStreamAbortFeature = (IStreamAbortFeature?)value; 301else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 303feature = Unsafe.As<IStreamAbortFeature?, TFeature?>(ref _currentIStreamAbortFeature); 373else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 375_currentIStreamAbortFeature = Unsafe.As<TFeature?, IStreamAbortFeature?>(ref feature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http3\Http3Stream.cs (2)
48private IStreamAbortFeature _streamAbortFeature = default!; 93_streamAbortFeature = _context.ConnectionFeatures.GetRequiredFeature<IStreamAbortFeature>();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Http3\Http3HttpProtocolFeatureCollectionTests.cs (3)
78featureCollection.Set<IStreamAbortFeature>(this); 90void IStreamAbortFeature.AbortRead(long errorCode, ConnectionAbortedException abortReason) 95void IStreamAbortFeature.AbortWrite(long errorCode, ConnectionAbortedException abortReason)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (12)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
1157Features.Set<IStreamAbortFeature>(this); 1273void IStreamAbortFeature.AbortRead(long errorCode, ConnectionAbortedException abortReason) 1278void IStreamAbortFeature.AbortWrite(long errorCode, ConnectionAbortedException abortReason)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
36internal protected IStreamAbortFeature? _currentIStreamAbortFeature; 171else if (key == typeof(IStreamAbortFeature)) 235else if (key == typeof(IStreamAbortFeature)) 237_currentIStreamAbortFeature = (IStreamAbortFeature?)value; 301else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 303feature = Unsafe.As<IStreamAbortFeature?, TFeature?>(ref _currentIStreamAbortFeature); 373else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 375_currentIStreamAbortFeature = Unsafe.As<TFeature?, IStreamAbortFeature?>(ref feature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (9)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
36internal protected IStreamAbortFeature? _currentIStreamAbortFeature; 171else if (key == typeof(IStreamAbortFeature)) 235else if (key == typeof(IStreamAbortFeature)) 237_currentIStreamAbortFeature = (IStreamAbortFeature?)value; 301else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 303feature = Unsafe.As<IStreamAbortFeature?, TFeature?>(ref _currentIStreamAbortFeature); 373else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 375_currentIStreamAbortFeature = Unsafe.As<TFeature?, IStreamAbortFeature?>(ref feature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (9)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
36internal protected IStreamAbortFeature? _currentIStreamAbortFeature; 171else if (key == typeof(IStreamAbortFeature)) 235else if (key == typeof(IStreamAbortFeature)) 237_currentIStreamAbortFeature = (IStreamAbortFeature?)value; 301else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 303feature = Unsafe.As<IStreamAbortFeature?, TFeature?>(ref _currentIStreamAbortFeature); 373else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 375_currentIStreamAbortFeature = Unsafe.As<TFeature?, IStreamAbortFeature?>(ref feature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (3)
QuicStreamContextTests.cs (3)
81serverStream.Features.Get<IStreamAbortFeature>().AbortRead((long)Http3ErrorCode.NoError, new ConnectionAbortedException("Test message.")); 505var streamAbortFeature = serverStream.Features.Get<IStreamAbortFeature>(); 577var protocolErrorCodeFeature = serverStream.Features.Get<IStreamAbortFeature>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (9)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
36internal protected IStreamAbortFeature? _currentIStreamAbortFeature; 171else if (key == typeof(IStreamAbortFeature)) 235else if (key == typeof(IStreamAbortFeature)) 237_currentIStreamAbortFeature = (IStreamAbortFeature?)value; 301else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 303feature = Unsafe.As<IStreamAbortFeature?, TFeature?>(ref _currentIStreamAbortFeature); 373else if (typeof(TFeature) == typeof(IStreamAbortFeature)) 375_currentIStreamAbortFeature = Unsafe.As<TFeature?, IStreamAbortFeature?>(ref feature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);