Methods to dynamically find/invoke methods with data portal and DI provided params
More...
Methods to dynamically find/invoke methods with data portal and DI provided params
Definition at line 27 of file ServiceProviderMethodCaller.cs.
◆ CallMethodTryAsync()
async Task< object > Csla.Reflection.ServiceProviderMethodCaller.CallMethodTryAsync |
( |
object |
obj, |
|
|
ServiceProviderMethodInfo |
method, |
|
|
object[] |
parameters |
|
) |
| |
Invoke a method async if possible, providing parameters from the params array and from DI
- Parameters
-
obj | Target object |
method | Method to invoke |
parameters | Criteria params array |
- Returns
Definition at line 455 of file ServiceProviderMethodCaller.cs.
◆ FindDataPortalMethod< T >() [1/2]
ServiceProviderMethodInfo Csla.Reflection.ServiceProviderMethodCaller.FindDataPortalMethod< T > |
( |
object |
target, |
|
|
object[] |
criteria |
|
) |
| |
Find a method based on data portal criteria and providing any remaining parameters with values from an IServiceProvider
- Parameters
-
target | Object with methods |
criteria | Data portal criteria values |
- Type Constraints
-
T | : | DataPortalOperationAttribute | |
Definition at line 50 of file ServiceProviderMethodCaller.cs.
◆ FindDataPortalMethod< T >() [2/2]
ServiceProviderMethodInfo Csla.Reflection.ServiceProviderMethodCaller.FindDataPortalMethod< T > |
( |
Type |
targetType, |
|
|
object[] |
criteria, |
|
|
bool |
throwOnError = true |
|
) |
| |
Find a method based on data portal criteria and providing any remaining parameters with values from an IServiceProvider
- Parameters
-
targetType | Type of domain object |
criteria | Data portal criteria values |
throwOnError | Throw exceptions on error |
- Type Constraints
-
T | : | DataPortalOperationAttribute | |
Definition at line 68 of file ServiceProviderMethodCaller.cs.