Implements a data portal proxy to relay data portal calls to a remote application server by using WCF. More...
Public Member Functions | |
WcfProxy () | |
Creates an instance of the object, initializing it to use the DefaultUrl and DefaultBinding values. More... | |
WcfProxy (string dataPortalUrl) | |
Creates an instance of the object, initializing it to use the supplied URL and DefaultBinding values. 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... | |
Protected Member Functions | |
virtual ChannelFactory< IWcfPortal > | GetChannelFactory () |
Returns an instance of the channel factory used by GetProxy() to create the WCF proxy object. More... | |
virtual IWcfPortal | GetProxy (ChannelFactory< IWcfPortal > cf) |
Returns the WCF proxy object used for communication with the data portal server. More... | |
Properties | |
static System.ServiceModel.Channels.Binding | DefaultBinding [getset] |
Gets or sets the default binding used to initialize future instances of WcfProxy. More... | |
static string | DefaultUrl [getset] |
Gets or sets the default URL address for the data portal server. More... | |
static string | DefaultEndPoint [getset] |
Gets or sets the default WCF endpoint name for the data portal server. More... | |
bool | IsServerRemote [get] |
Gets a value indicating whether the data portal is hosted on a remote server. More... | |
System.ServiceModel.Channels.Binding | Binding [getprotected set] |
Gets the binding object used by this proxy instance. More... | |
string | DataPortalUrl [getprotected set] |
Gets the URL address for the data portal server used by this proxy instance. More... | |
string | EndPoint [getprotected set] |
Gets the WCF endpoint name for the data portal server used by this proxy instance. 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 a remote application server by using WCF.
Definition at line 21 of file WcfProxy.cs.
Csla.DataPortalClient.WcfProxy.WcfProxy | ( | ) |
Creates an instance of the object, initializing it to use the DefaultUrl and DefaultBinding values.
Definition at line 86 of file WcfProxy.cs.
Csla.DataPortalClient.WcfProxy.WcfProxy | ( | string | dataPortalUrl | ) |
Creates an instance of the object, initializing it to use the supplied URL and DefaultBinding values.
dataPortalUrl | Server endpoint URL |
Definition at line 99 of file WcfProxy.cs.
async Task< DataPortalResult > Csla.DataPortalClient.WcfProxy.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 173 of file WcfProxy.cs.
async Task< DataPortalResult > Csla.DataPortalClient.WcfProxy.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 285 of file WcfProxy.cs.
async Task< DataPortalResult > Csla.DataPortalClient.WcfProxy.Fetch | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Called by DataPortal to load an existing 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 210 of file WcfProxy.cs.
|
protectedvirtual |
Returns an instance of the channel factory used by GetProxy() to create the WCF proxy object.
If DataPortalUrl is given, the factory will be created using it and the default binding. Otherwise, it will use the endpoint config from app/web.config.
Definition at line 142 of file WcfProxy.cs.
|
protectedvirtual |
Returns the WCF proxy object used for communication with the data portal server.
cf | The ChannelFactory created by GetChannelFactory(). |
Definition at line 158 of file WcfProxy.cs.
async Task< DataPortalResult > Csla.DataPortalClient.WcfProxy.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 247 of file WcfProxy.cs.
|
getprotected set |
Gets the binding object used by this proxy instance.
Definition at line 118 of file WcfProxy.cs.
|
getprotected set |
Gets the URL address for the data portal server used by this proxy instance.
Definition at line 124 of file WcfProxy.cs.
|
staticgetset |
Gets or sets the default binding used to initialize future instances of WcfProxy.
Definition at line 31 of file WcfProxy.cs.
|
staticgetset |
Gets or sets the default WCF endpoint name for the data portal server.
Definition at line 75 of file WcfProxy.cs.
|
staticgetset |
Gets or sets the default URL address for the data portal server.
Deprecated: use ApplicationContext.DataPortalUrlString
Definition at line 65 of file WcfProxy.cs.
|
getprotected set |
Gets the WCF endpoint name for the data portal server used by this proxy instance.
Definition at line 130 of file WcfProxy.cs.
|
get |
Gets a value indicating whether the data portal is hosted on a remote server.
Definition at line 110 of file WcfProxy.cs.