Class AspNetAppContext
The OWIN web application context.
Inheritance
System.Object
System.Dynamic.DynamicObject
AspNetAppContext
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Application.AspNetCore.Application
Assembly: Kephas.Application.AspNetCore.dll
Syntax
public class AspNetAppContext : AppContext, IAspNetAppContext, IAppContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable
Constructors
| Improve this Doc View SourceAspNetAppContext(IHostingEnvironment, IConfiguration, IAmbientServices, IAppRuntime, IAppArgs)
Initializes a new instance of the AspNetAppContext class.
Declaration
public AspNetAppContext(IHostingEnvironment hostingEnvironment, IConfiguration configuration, IAmbientServices ambientServices = null, IAppRuntime appRuntime = null, IAppArgs appArgs = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Hosting.IHostingEnvironment | hostingEnvironment | The hosting environment. |
Microsoft.Extensions.Configuration.IConfiguration | configuration | The ASP.NET configuration. |
IAmbientServices | ambientServices | Optional. The ambient services. If not provided, Instance will be considered. |
IAppRuntime | appRuntime | Optional. The application runtime. |
IAppArgs | appArgs | Optional. The application arguments. |
Properties
| Improve this Doc View SourceAppBuilder
Gets the application builder.
Declaration
public IApplicationBuilder AppBuilder { get; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Builder.IApplicationBuilder | The application builder. |
Configuration
Gets the ASP.NET configuration.
Declaration
public IConfiguration Configuration { get; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Configuration.IConfiguration | The ASP.NET configuration. |
HostingEnvironment
Gets the hosting environment.
Declaration
public IHostingEnvironment HostingEnvironment { get; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Hosting.IHostingEnvironment | The hosting environment. |
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable