Implements a data portal proxy to relay data portal calls to an application server hosted locally in the client process and AppDomain. More...
Public Member Functions | |
async Task< DataPortalResult > | Create (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Called by DataPortal to create a new business object. More... | |
async Task< DataPortalResult > | Fetch (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Called by DataPortal to load an existing business object. More... | |
async Task< DataPortalResult > | Update (object obj, DataPortalContext context, bool isSync) |
Called by DataPortal to update a business object. More... | |
async Task< DataPortalResult > | Delete (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Called by DataPortal to delete a business object. More... | |
Properties | |
bool | IsServerRemote [get] |
Gets a value indicating whether this proxy will invoke a remote data portal server, or run the "server-side" data portal in the caller's process and AppDomain. More... | |
bool | FlowSynchronizationContext [get] |
Gets a value indicating whether any synchronization context should be flowed to child tasks. More... | |
Properties inherited from Csla.DataPortalClient.IDataPortalProxy | |
bool | IsServerRemote [get] |
Get a value indicating whether this proxy will invoke a remote data portal server, or run the "server-side" data portal in the caller's process and AppDomain. More... | |
Implements a data portal proxy to relay data portal calls to an application server hosted locally in the client process and AppDomain.
Definition at line 22 of file LocalProxy.cs.
async Task< DataPortalResult > Csla.DataPortalClient.LocalProxy.Create | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Called by DataPortal to 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 36 of file LocalProxy.cs.
async Task< DataPortalResult > Csla.DataPortalClient.LocalProxy.Delete | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Called by DataPortal to 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 120 of file LocalProxy.cs.
async Task< DataPortalResult > Csla.DataPortalClient.LocalProxy.Fetch | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Called by DataPortal to load 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 LocalProxy.cs.
async Task< DataPortalResult > Csla.DataPortalClient.LocalProxy.Update | ( | object | obj, |
DataPortalContext | context, | ||
bool | isSync | ||
) |
Called by DataPortal to update a business object.
obj | The 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 92 of file LocalProxy.cs.
|
get |
Gets a value indicating whether any synchronization context should be flowed to child tasks.
Setting this to true may restrict or eliminate the use of background threads.
Definition at line 154 of file LocalProxy.cs.
|
get |
Gets a value indicating whether this proxy will invoke a remote data portal server, or run the "server-side" data portal in the caller's process and AppDomain.
Definition at line 143 of file LocalProxy.cs.