Class BusinessContext
Represents Business Context.
Inheritance
System.Object
    BusinessContext
  Namespace: Mediachase.BusinessFoundation.Data.Business
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0Syntax
public class BusinessContext : ObjectConstructors
BusinessContext(Request, Response)
Initializes a new instance of the BusinessContext class.
Declaration
public BusinessContext(Request request, Response response)Parameters
| Type | Name | Description | 
|---|---|---|
| Request | request | |
| Response | response | 
Properties
Current
Gets or sets the current.
Declaration
public static BusinessContext Current { get; }Property Value
| Type | Description | 
|---|---|
| BusinessContext | The current. | 
Items
Gets the items.
Declaration
public Hashtable Items { get; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Hashtable | The items. | 
ParentContext
Gets or sets the parent context.
Declaration
public BusinessContext ParentContext { get; }Property Value
| Type | Description | 
|---|---|
| BusinessContext | The parent context. | 
PluginStage
Gets the current plugin event pipe line stage.
Declaration
public EventPipeLineStage PluginStage { get; }Property Value
| Type | Description | 
|---|---|
| EventPipeLineStage | The event pipe line stage. | 
Request
Gets or sets the request.
Declaration
public Request Request { get; protected set; }Property Value
| Type | Description | 
|---|---|
| Request | The request. | 
Response
Gets or sets the response.
Declaration
public Response Response { get; protected set; }Property Value
| Type | Description | 
|---|---|
| Response | The response. | 
Methods
GetMethod()
Gets the method.
Declaration
public string GetMethod()Returns
| Type | Description | 
|---|---|
| System.String | 
GetTargetMetaClassName()
Gets the name of the target meta class.
Declaration
public string GetTargetMetaClassName()Returns
| Type | Description | 
|---|---|
| System.String | 
GetTargetPrimaryKeyId()
Gets the target primary key id.
Declaration
public Nullable<PrimaryKeyId> GetTargetPrimaryKeyId()Returns
| Type | Description | 
|---|---|
| System.Nullable<PrimaryKeyId> | 
SetResponse(Response)
Sets the response.
Declaration
public void SetResponse(Response response)Parameters
| Type | Name | Description | 
|---|---|---|
| Response | response | The response. | 
