Skip to content

DurableTaskRequest Methods

Defines a deferred, host-scheduled durable asynchronous operation.

Dispose

abstract
public abstract void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetActivityName

abstract
public abstract string GetActivityName()
Gets the activity name, which refers to both the interface name and method name.

GetArgument(int)

virtual
View source
public virtual object GetArgument(int index)
Gets the argument at the specified index.

Parameters

indexint
The argument index.

Returns

The argument at the specified index.

GetHandle(TaskId)

View source
public IScheduledTaskHandle GetHandle(TaskId taskId)
Gets a handle for a scheduled identifier.

Parameters

taskIdTaskId

GetInterfaceName

abstract
public abstract string GetInterfaceName()
Gets the full interface name.

GetInterfaceType

abstract
public abstract Type GetInterfaceType()
Gets the interface type.

GetMethod

abstract
public abstract MethodInfo GetMethod()
Gets the method info object, which may be null.

GetMethodName

abstract
public abstract string GetMethodName()
Gets the method name.

GetTarget

abstract
public abstract object GetTarget()
Gets the invocation target.

Returns

The invocation target.

InvokeInner

abstract
protected abstract DurableTask InvokeInner()

RunAsync(DurableTaskContext)

override
View source
protected internal override ValueTask<DurableTaskResponse> RunAsync(DurableTaskContext executionContext)
Runs the definition in the supplied execution context.

Parameters

executionContextDurableTaskContext

SetArgument(int, object)

virtual
View source
public virtual void SetArgument(int index, object value)
Sets the argument at the specified index.

Parameters

indexint
The argument index.
valueobject
The argument value

SetTarget(ITargetHolder)

abstract
public abstract void SetTarget(ITargetHolder holder)
Sets the invocation target from an instance of ITargetHolder.

Parameters

holderITargetHolder
The invocation target.

ToString

override
View source
public override string ToString()
Returns a string that represents the current object.

Returns

A string that represents the current object.