RegisterClassMiddleware<T> Class

Definition

Middleware for adding an object to or registering a service with the current turn context.

public class RegisterClassMiddleware<T> : Microsoft.Bot.Builder.IMiddleware where T : class
type RegisterClassMiddleware<'T (requires 'T : null)> = class
    interface IMiddleware
Public Class RegisterClassMiddleware(Of T)
Implements IMiddleware

Type Parameters

T

The type of object or service to add.

Inheritance
RegisterClassMiddleware<T>
Implements

Constructors

RegisterClassMiddleware<T>(T)

Initializes a new instance of the RegisterClassMiddleware<T> class.

RegisterClassMiddleware<T>(T, String)

Initializes a new instance of the RegisterClassMiddleware<T> class.

Properties

Service

Gets or sets the object or service to add to the turn context.

Methods

OnTurnAsync(ITurnContext, NextDelegate, CancellationToken)

Adds the associated object or service to the current turn context.

Applies to