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.Reflection.ServiceProviderMethodCaller Class Reference

Methods to dynamically find/invoke methods with data portal and DI provided params More...

Inheritance diagram for Csla.Reflection.ServiceProviderMethodCaller:
Csla.Core.IUseApplicationContext

Public Member Functions

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 More...
 
ServiceProviderMethodInfo 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 More...
 
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 More...
 

Additional Inherited Members

- Properties inherited from Csla.Core.IUseApplicationContext
ApplicationContext ApplicationContext [getset]
 Gets or sets the current ApplicationContext object. More...
 

Detailed Description

Methods to dynamically find/invoke methods with data portal and DI provided params

Definition at line 27 of file ServiceProviderMethodCaller.cs.

Member Function Documentation

◆ 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
objTarget object
methodMethod to invoke
parametersCriteria 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
targetObject with methods
criteriaData 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
targetTypeType of domain object
criteriaData portal criteria values
throwOnErrorThrow exceptions on error
Type Constraints
T :DataPortalOperationAttribute 

Definition at line 68 of file ServiceProviderMethodCaller.cs.