Implements the server-side DataPortal message router as discussed in Chapter 4. More...
Public Member Functions | |
DataPortal (ApplicationContext applicationContext, IDashboard dashboard, CslaOptions options, IAuthorizeDataPortal authorizer, InterceptorManager interceptors, IObjectFactoryLoader factoryLoader, IDataPortalActivator activator, IDataPortalExceptionInspector exceptionInspector, DataPortalExceptionHandler exceptionHandler) | |
Creates an instance of the type. More... | |
async Task< DataPortalResult > | Create (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Create a new business object. More... | |
async Task< DataPortalResult > | Fetch (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Get an existing business object. More... | |
async Task< DataPortalResult > | Update (object obj, DataPortalContext context, bool isSync) |
Update a business object. More... | |
async Task< DataPortalResult > | Delete (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Delete a business object. More... | |
Static Public Member Functions | |
static object | GetCriteriaFromArray (params object[] criteria) |
Converts a params array to a single serializable criteria value. More... | |
static object[] | GetCriteriaArray (object criteria) |
Converts a single serializable criteria value into an array of type object. More... | |
Implements the server-side DataPortal message router as discussed in Chapter 4.
Definition at line 23 of file DataPortal.cs.
Csla.Server.DataPortal.DataPortal | ( | ApplicationContext | applicationContext, |
IDashboard | dashboard, | ||
CslaOptions | options, | ||
IAuthorizeDataPortal | authorizer, | ||
InterceptorManager | interceptors, | ||
IObjectFactoryLoader | factoryLoader, | ||
IDataPortalActivator | activator, | ||
IDataPortalExceptionInspector | exceptionInspector, | ||
DataPortalExceptionHandler | exceptionHandler | ||
) |
Creates an instance of the type.
applicationContext | |
dashboard | |
options | |
activator | |
authorizer | |
exceptionInspector | |
factoryLoader | |
interceptors | |
exceptionHandler |
Definition at line 54 of file DataPortal.cs.
async Task< DataPortalResult > Csla.Server.DataPortal.Create | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Create a new business object.
objectType | Type of business object to create. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 117 of file DataPortal.cs.
async Task< DataPortalResult > Csla.Server.DataPortal.Delete | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Delete a business object.
objectType | Type of business object to create. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 441 of file DataPortal.cs.
async Task< DataPortalResult > Csla.Server.DataPortal.Fetch | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Get an existing business object.
objectType | Type of business object to retrieve. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 214 of file DataPortal.cs.
|
static |
Converts a single serializable criteria value into an array of type object.
criteria | Single serializble criteria value |
Definition at line 681 of file DataPortal.cs.
|
static |
Converts a params array to a single serializable criteria value.
criteria | Params array |
Definition at line 656 of file DataPortal.cs.
async Task< DataPortalResult > Csla.Server.DataPortal.Update | ( | object | obj, |
DataPortalContext | context, | ||
bool | isSync | ||
) |
Update a business object.
obj | Business object to update. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 308 of file DataPortal.cs.