CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.DataPortalClient.LocalProxy Class Reference

Implements a data portal proxy to relay data portal calls to an application server hosted locally in the client process and AppDomain. More...

Inheritance diagram for Csla.DataPortalClient.LocalProxy:
Csla.DataPortalClient.IDataPortalProxy Csla.Server.IDataPortalServer

Public Member Functions

async Task< DataPortalResultCreate (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Called by DataPortal to create a new business object. More...
 
async Task< DataPortalResultFetch (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Called by DataPortal to load an existing business object. More...
 
async Task< DataPortalResultUpdate (object obj, DataPortalContext context, bool isSync)
 Called by DataPortal to update a business object. More...
 
async Task< DataPortalResultDelete (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...
 

Detailed Description

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.

Member Function Documentation

◆ Create()

async Task< DataPortalResult > Csla.DataPortalClient.LocalProxy.Create ( Type  objectType,
object  criteria,
DataPortalContext  context,
bool  isSync 
)

Called by DataPortal to create a new business object.

Parameters
objectTypeType of business object to create.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.

Implements Csla.Server.IDataPortalServer.

Definition at line 36 of file LocalProxy.cs.

◆ Delete()

async Task< DataPortalResult > Csla.DataPortalClient.LocalProxy.Delete ( Type  objectType,
object  criteria,
DataPortalContext  context,
bool  isSync 
)

Called by DataPortal to delete a business object.

Parameters
objectTypeType of business object to create.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.

Implements Csla.Server.IDataPortalServer.

Definition at line 120 of file LocalProxy.cs.

◆ Fetch()

async Task< DataPortalResult > Csla.DataPortalClient.LocalProxy.Fetch ( Type  objectType,
object  criteria,
DataPortalContext  context,
bool  isSync 
)

Called by DataPortal to load an existing business object.

Parameters
objectTypeType of business object to retrieve.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.

Implements Csla.Server.IDataPortalServer.

Definition at line 65 of file LocalProxy.cs.

◆ Update()

async Task< DataPortalResult > Csla.DataPortalClient.LocalProxy.Update ( object  obj,
DataPortalContext  context,
bool  isSync 
)

Called by DataPortal to update a business object.

Parameters
objThe business object to update.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.

Implements Csla.Server.IDataPortalServer.

Definition at line 92 of file LocalProxy.cs.

Property Documentation

◆ FlowSynchronizationContext

bool Csla.DataPortalClient.LocalProxy.FlowSynchronizationContext
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.

◆ IsServerRemote

bool Csla.DataPortalClient.LocalProxy.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.

Definition at line 143 of file LocalProxy.cs.