CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Channels.Local.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.Channels.Local.LocalProxy:
Csla.DataPortalClient.IDataPortalProxy Csla.Server.IDataPortalServer

Public Member Functions

 LocalProxy (ApplicationContext applicationContext, LocalProxyOptions options)
 Creates an instance of the type More...
 
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...
 
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...
 

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 24 of file LocalProxy.cs.

Constructor & Destructor Documentation

◆ LocalProxy()

Csla.Channels.Local.LocalProxy.LocalProxy ( ApplicationContext  applicationContext,
LocalProxyOptions  options 
)

Creates an instance of the type

Parameters
applicationContextApplicationContext
optionsOptions instance

Definition at line 31 of file LocalProxy.cs.

Member Function Documentation

◆ Create()

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.

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 156 of file LocalProxy.cs.

◆ Delete()

async Task< DataPortalResult > Csla.Channels.Local.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 252 of file LocalProxy.cs.

◆ Dispose() [1/2]

void Csla.Channels.Local.LocalProxy.Dispose ( )

Dispose current object

Definition at line 303 of file LocalProxy.cs.

◆ Dispose() [2/2]

virtual void Csla.Channels.Local.LocalProxy.Dispose ( bool  disposing)
protectedvirtual

Dispose current object

Parameters
disposing

Definition at line 288 of file LocalProxy.cs.

◆ Fetch()

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.

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 189 of file LocalProxy.cs.

◆ Update()

async Task< DataPortalResult > Csla.Channels.Local.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 220 of file LocalProxy.cs.

Property Documentation

◆ IsServerRemote

bool Csla.Channels.Local.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 279 of file LocalProxy.cs.