Class AppContext
The default application context.
Inheritance
System.Object
System.Dynamic.DynamicObject
AppContext
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
Assembly: Kephas.Application.dll
Syntax
public class AppContext : Context, IAppContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable
Constructors
| Improve this Doc View SourceAppContext(IAmbientServices, IAppRuntime, IAppArgs)
Initializes a new instance of the AppContext class.
Declaration
public AppContext(IAmbientServices ambientServices, IAppRuntime appRuntime = null, IAppArgs appArgs = null)
Parameters
Type | Name | Description |
---|---|---|
IAmbientServices | ambientServices | The ambient services. |
IAppRuntime | appRuntime | Optional. The application runtime. |
IAppArgs | appArgs | Optional. The application arguments. |
Properties
| Improve this Doc View SourceAppArgs
Gets the application arguments passed typically as command line arguments.
Declaration
public IAppArgs AppArgs { get; }
Property Value
Type | Description |
---|---|
IAppArgs | The application arguments. |
AppResult
Gets or sets the application result.
Declaration
public object AppResult { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The application result. |
AppRuntime
Gets the application runtime.
Declaration
public IAppRuntime AppRuntime { get; }
Property Value
Type | Description |
---|---|
IAppRuntime |
Exception
Gets or sets the application root exception.
Declaration
public Exception Exception { get; set; }
Property Value
Type | Description |
---|---|
System.Exception | The application root exception. |
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable