Enables simple invocation of methods against the contained object using late binding. More...
Public Member Functions | |
LateBoundObject (Type objectType) | |
Creates an instance of the specified type and contains it within a new LateBoundObject. More... | |
LateBoundObject (object instance) | |
Contains the provided object within a new LateBoundObject. More... | |
object | CallMethodIfImplemented (string method) |
Uses reflection to dynamically invoke a method if that method is implemented on the target object. More... | |
object | CallMethodIfImplemented (string method, params object[] parameters) |
Uses reflection to dynamically invoke a method if that method is implemented on the target object. More... | |
object | CallMethod (string method) |
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object. More... | |
object | CallMethod (string method, params object[] parameters) |
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object. More... | |
async Task | CallMethodTryAsync (string methodName) |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method. More... | |
async Task | CallMethodTryAsync (string methodName, params object[] parameters) |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method. More... | |
async Task | CallMethodTryAsyncDI< T > (bool isSync, params object[] parameters) |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method. More... | |
Properties | |
object | Instance [get] |
Object instance managed by LateBoundObject. More... | |
Properties inherited from Csla.Core.IUseApplicationContext | |
ApplicationContext | ApplicationContext [getset] |
Gets or sets the current ApplicationContext object. More... | |
Enables simple invocation of methods against the contained object using late binding.
Definition at line 19 of file LateBoundObject.cs.
Csla.Reflection.LateBoundObject.LateBoundObject | ( | Type | objectType | ) |
Creates an instance of the specified type and contains it within a new LateBoundObject.
objectType | Type of object to create. |
The specified type must implement a default constructor.
Definition at line 41 of file LateBoundObject.cs.
Csla.Reflection.LateBoundObject.LateBoundObject | ( | object | instance | ) |
Contains the provided object within a new LateBoundObject.
instance | Object to contain. |
Definition at line 53 of file LateBoundObject.cs.
object Csla.Reflection.LateBoundObject.CallMethod | ( | string | method | ) |
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object.
method | Name of the method. |
Definition at line 93 of file LateBoundObject.cs.
object Csla.Reflection.LateBoundObject.CallMethod | ( | string | method, |
params object[] | parameters | ||
) |
Uses reflection to dynamically invoke a method, throwing an exception if it is not implemented on the target object.
method | Name of the method. |
parameters | Parameters to pass to method. |
Definition at line 109 of file LateBoundObject.cs.
object Csla.Reflection.LateBoundObject.CallMethodIfImplemented | ( | string | method | ) |
Uses reflection to dynamically invoke a method if that method is implemented on the target object.
method | Name of the method. |
Definition at line 65 of file LateBoundObject.cs.
object Csla.Reflection.LateBoundObject.CallMethodIfImplemented | ( | string | method, |
params object[] | parameters | ||
) |
Uses reflection to dynamically invoke a method if that method is implemented on the target object.
method | Name of the method. |
parameters | Parameters to pass to method. |
Definition at line 80 of file LateBoundObject.cs.
async Task Csla.Reflection.LateBoundObject.CallMethodTryAsync | ( | string | methodName | ) |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
methodName | Name of the method. |
Definition at line 121 of file LateBoundObject.cs.
async Task Csla.Reflection.LateBoundObject.CallMethodTryAsync | ( | string | methodName, |
params object[] | parameters | ||
) |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
methodName | Name of the method. |
parameters | Parameters to pass to method. |
Definition at line 146 of file LateBoundObject.cs.
async Task Csla.Reflection.LateBoundObject.CallMethodTryAsyncDI< T > | ( | bool | isSync, |
params object[] | parameters | ||
) |
Invokes a method using the await keyword if the method returns Task, otherwise synchronously invokes the method.
isSync | Is client calling this synchronously |
parameters | Parameters to pass to method. |
T | : | DataPortalOperationAttribute |
Definition at line 182 of file LateBoundObject.cs.
|
get |
Object instance managed by LateBoundObject.
Definition at line 27 of file LateBoundObject.cs.