Methods to dynamically find/invoke methods with data portal and DI provided params.
More...
|
| ServiceProviderMethodInfo | FindDataPortalMethod< T > (object target, object?[]? criteria) |
| | Find a method based on data portal criteria and providing any remaining parameters with values from an IServiceProvider.
|
| ServiceProviderMethodInfo | FindDataPortalMethod< T > ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type targetType, object?[]? criteria) |
| | Find a method based on data portal criteria and providing any remaining parameters with values from an IServiceProvider.
|
| bool | TryFindDataPortalMethod< T > ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type? targetType, object?[]? criteria, [NotNullWhen(true)] out ServiceProviderMethodInfo? dataPortalMethod) |
| | Find a method based on data portal criteria and providing any remaining parameters with values from an IServiceProvider.
|
| async Task< object?> | CallMethodTryAsync (object obj, ServiceProviderMethodInfo method, object?[]? parameters) |
| | Invoke a method async if possible, providing parameters from the params array and from DI.
|
Methods to dynamically find/invoke methods with data portal and DI provided params.
◆ CallMethodTryAsync()
| async Task< object?> Csla.Reflection.ServiceProviderMethodCaller.CallMethodTryAsync |
( |
object | obj, |
|
|
ServiceProviderMethodInfo | method, |
|
|
object??[] | parameters ) |
|
inline |
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 |
- Exceptions
-
| ArgumentNullException | obj or method is null. |
◆ FindDataPortalMethod< T >() [1/2]
| ServiceProviderMethodInfo Csla.Reflection.ServiceProviderMethodCaller.FindDataPortalMethod< T > |
( |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type | targetType, |
|
|
object??[] | criteria ) |
|
inline |
Find a method based on data portal criteria and providing any remaining parameters with values from an IServiceProvider.
- Parameters
-
| targetType | Object with methods |
| criteria | Data portal criteria values |
- Exceptions
-
| ArgumentNullException | targetType is null. |
- Type Constraints
-
| T | : | DataPortalOperationAttribute | |
◆ FindDataPortalMethod< T >() [2/2]
| ServiceProviderMethodInfo Csla.Reflection.ServiceProviderMethodCaller.FindDataPortalMethod< T > |
( |
object | target, |
|
|
object??[] | criteria ) |
|
inline |
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 |
- Exceptions
-
| ArgumentNullException | target is null. |
- Type Constraints
-
| T | : | DataPortalOperationAttribute | |
◆ TryFindDataPortalMethod< T >()
| bool Csla.Reflection.ServiceProviderMethodCaller.TryFindDataPortalMethod< T > |
( |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type? | targetType, |
|
|
object??[] | criteria, |
|
|
[NotNullWhen(true)] out ServiceProviderMethodInfo? | dataPortalMethod ) |
|
inline |
Find a method based on data portal criteria and providing any remaining parameters with values from an IServiceProvider.
- Template Parameters
-
| T | Type of attribute to look for |
- Parameters
-
| targetType | Type of domain object |
| criteria | Data portal criteria values |
| dataPortalMethod | The maybe found method. |
- Returns
true if a method with the provided attribute was found. Otherwise false.
- Type Constraints
-
| T | : | DataPortalOperationAttribute | |
The documentation for this class was generated from the following file: