IActivityTaskQueue.QueueBackgroundActivity 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.
Enqueue an Activity, with Claims, to be processed on a background thread. before enqueueing.
public void QueueBackgroundActivity(System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Agents.Core.Models.IActivity activity, bool proactive = false, string proactiveAudience = default, Type agentType = default, Func<Microsoft.Agents.Core.Models.InvokeResponse,System.Threading.Tasks.Task> onComplete = default, Microsoft.AspNetCore.Http.IHeaderDictionary headers = default);
abstract member QueueBackgroundActivity : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.IActivity * bool * string * Type * Func<Microsoft.Agents.Core.Models.InvokeResponse, System.Threading.Tasks.Task> * Microsoft.AspNetCore.Http.IHeaderDictionary -> unit
Public Sub QueueBackgroundActivity (claimsIdentity As ClaimsIdentity, activity As IActivity, Optional proactive As Boolean = false, Optional proactiveAudience As String = Nothing, Optional agentType As Type = Nothing, Optional onComplete As Func(Of InvokeResponse, Task) = Nothing, Optional headers As IHeaderDictionary = Nothing)
Parameters
- claimsIdentity
- ClaimsIdentity
Authenticated ClaimsIdentity used to process the activity.
- proactive
- Boolean
- proactiveAudience
- String
- agentType
- Type
- onComplete
- Func<InvokeResponse,Task>
- headers
- IHeaderDictionary
Headers used for the current Activity request.
Remarks
It is assumed these Claims have been authenticated via JwtTokenValidation.AuthenticateRequest.