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.BrokeredProxy 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.BrokeredProxy:
Csla.DataPortalClient.IDataPortalProxy Csla.Server.IDataPortalServer

Public Member Functions

async Task< DataPortalResultCreate (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Called by the client-side DataPortal to create a new business object. More...
 
async Task< DataPortalResultFetch (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Called by the client-side DataPortal to fetch a business object. More...
 
async Task< DataPortalResultUpdate (object obj, DataPortalContext context, bool isSync)
 Called by the client-side DataPortal to update a business object. More...
 
async Task< DataPortalResultDelete (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Called by the client-side DataPortal to delete a business object. More...
 

Properties

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...
 
- 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 25 of file BrokeredProxy.cs.

Member Function Documentation

◆ Create()

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

Called by the client-side 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 45 of file BrokeredProxy.cs.

◆ Delete()

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

Called by the client-side DataPortal to delete a business object.

Parameters
objectTypeType of business object to delete.
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 185 of file BrokeredProxy.cs.

◆ Fetch()

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

Called by the client-side DataPortal to fetch a business object.

Parameters
objectTypeType of business object to fetch.
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 93 of file BrokeredProxy.cs.

◆ Update()

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

Called by the client-side DataPortal to update a business object.

Parameters
objBusiness 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 140 of file BrokeredProxy.cs.

Property Documentation

◆ IsServerRemote

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

Definition at line 32 of file BrokeredProxy.cs.