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 | |
| LocalProxy (ApplicationContext applicationContext, LocalProxyOptions options) | |
| Creates an instance of the type More... | |
| 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... | |
| void | Dispose () |
| Dispose current object More... | |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
| Dispose current 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... | |
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 24 of file LocalProxy.cs.
| Csla.Channels.Local.LocalProxy.LocalProxy | ( | ApplicationContext | applicationContext, |
| LocalProxyOptions | options | ||
| ) |
Creates an instance of the type
| applicationContext | ApplicationContext |
| options | Options instance |
Definition at line 31 of file LocalProxy.cs.
| async Task< DataPortalResult > Csla.Channels.Local.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 156 of file LocalProxy.cs.
| async Task< DataPortalResult > Csla.Channels.Local.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 252 of file LocalProxy.cs.
| void Csla.Channels.Local.LocalProxy.Dispose | ( | ) |
Dispose current object
Definition at line 303 of file LocalProxy.cs.
|
protectedvirtual |
| async Task< DataPortalResult > Csla.Channels.Local.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 189 of file LocalProxy.cs.
| async Task< DataPortalResult > Csla.Channels.Local.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 220 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 279 of file LocalProxy.cs.