Allows the Data Portal call to be intercepted by a custom IDataPortalServer implementation. More...
Public Member Functions | |
DataPortalBroker (DataPortalSelector dataPortalSelector) | |
Task< DataPortalResult > | Create (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Create a new business object. More... | |
Task< DataPortalResult > | Fetch (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Get an existing business object. More... | |
Task< DataPortalResult > | Update (object obj, DataPortalContext context, bool isSync) |
Update a business object. More... | |
Task< DataPortalResult > | Delete (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Delete a business object. More... | |
Properties | |
static IDataPortalServer | DataPortalServer [getset] |
Gets or sets a reference to a implementation of IDataPortalServer to be used. More... | |
Allows the Data Portal call to be intercepted by a custom IDataPortalServer implementation.
Definition at line 17 of file DataPortalBroker.cs.
Csla.Server.DataPortalBroker.DataPortalBroker | ( | DataPortalSelector | dataPortalSelector | ) |
dataPortalSelector |
Definition at line 23 of file DataPortalBroker.cs.
Task< DataPortalResult > Csla.Server.DataPortalBroker.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 44 of file DataPortalBroker.cs.
Task< DataPortalResult > Csla.Server.DataPortalBroker.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 106 of file DataPortalBroker.cs.
Task< DataPortalResult > Csla.Server.DataPortalBroker.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 65 of file DataPortalBroker.cs.
Task< DataPortalResult > Csla.Server.DataPortalBroker.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 85 of file DataPortalBroker.cs.
|
staticgetset |
Gets or sets a reference to a implementation of IDataPortalServer to be used.
Definition at line 33 of file DataPortalBroker.cs.