Microsoft.AspNetCore.Hosting.Server.Abstractions.netcoreapp.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright (c) .NET Foundation. All rights reserved.
  2. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
  3. namespace Microsoft.AspNetCore.Hosting.Server
  4. {
  5. public partial interface IHttpApplication<TContext>
  6. {
  7. TContext CreateContext(Microsoft.AspNetCore.Http.Features.IFeatureCollection contextFeatures);
  8. void DisposeContext(TContext context, System.Exception exception);
  9. System.Threading.Tasks.Task ProcessRequestAsync(TContext context);
  10. }
  11. public partial interface IServer : System.IDisposable
  12. {
  13. Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get; }
  14. System.Threading.Tasks.Task StartAsync<TContext>(Microsoft.AspNetCore.Hosting.Server.IHttpApplication<TContext> application, System.Threading.CancellationToken cancellationToken);
  15. System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken);
  16. }
  17. public partial interface IServerIntegratedAuth
  18. {
  19. string AuthenticationScheme { get; }
  20. bool IsEnabled { get; }
  21. }
  22. public partial class ServerIntegratedAuth : Microsoft.AspNetCore.Hosting.Server.IServerIntegratedAuth
  23. {
  24. public ServerIntegratedAuth() { }
  25. public string AuthenticationScheme { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute] set { } }
  26. public bool IsEnabled { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute] set { } }
  27. }
  28. }
  29. namespace Microsoft.AspNetCore.Hosting.Server.Abstractions
  30. {
  31. public partial interface IHostContextContainer<TContext>
  32. {
  33. TContext HostContext { get; set; }
  34. }
  35. }
  36. namespace Microsoft.AspNetCore.Hosting.Server.Features
  37. {
  38. public partial interface IServerAddressesFeature
  39. {
  40. System.Collections.Generic.ICollection<string> Addresses { get; }
  41. bool PreferHostingUrls { get; set; }
  42. }
  43. }