IDurableEntityContext.DispatchAsync<T>(Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Dynamically dispatches the incoming entity operation using reflection.
public System.Threading.Tasks.Task DispatchAsync<T> (params object[] constructorParameters) where T : class;
abstract member DispatchAsync : obj[] -> System.Threading.Tasks.Task (requires 'T : null)
Public Function DispatchAsync(Of T As Class) (ParamArray constructorParameters As Object()) As Task
Type Parameters
- T
The class to use for entity instances.
Parameters
- constructorParameters
- Object[]
Parameters to feed to the entity constructor. Should be primarily used for output bindings. Parameters must match the order in the constructor after ignoring parameters populated on constructor via dependency injection.
Returns
A task that completes when the dispatched operation has finished.
Exceptions
If there is more than one method with the given operation name.
If there is no method with the given operation name.
If the method has more than one argument.
Remarks
If the entity's state is null, an object of type T
is created first. Then, reflection is used to try to find a matching method. This match is based on the method name (which is the operation name) and the argument list (which is the operation content, deserialized into an object array).
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기