Language

FileConsentDeclineRouteBuilder Class

Definition

Provides a builder for configuring routes that handle Teams file consent decline invocations.

public class FileConsentDeclineRouteBuilder : Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsentRouteBuilderBase<Microsoft.Agents.Extensions.MSTeams.FileConsents.FileConsentDeclineRouteBuilder>
type FileConsentDeclineRouteBuilder = class
    inherit FileConsentRouteBuilderBase<FileConsentDeclineRouteBuilder>
Public Class FileConsentDeclineRouteBuilder
Inherits FileConsentRouteBuilderBase(Of FileConsentDeclineRouteBuilder)
Inheritance

Remarks

Use FileConsentDeclineRouteBuilder to create and configure routes that respond to Activity Type of Invoke with a name of FileConsent and Action of "decline".

Constructors

Name Description
FileConsentDeclineRouteBuilder()

Initializes a new instance of FileConsentDeclineRouteBuilder, pre-configured to match file consent decline invocations.

Fields

Name Description
_route (Inherited from RouteBuilderBase<TBuilder>)

Properties

Name Description
Action

The file consent action string ("accept" or "decline") this builder matches. Subclass constructors must set this property.

(Inherited from FileConsentRouteBuilderBase<TBuilder>)

Methods

Name Description
AsAgentic(Boolean)

Configures the route to operate in agentic mode, enabling behaviors associated with agentic processing.

(Inherited from RouteBuilderBase<TBuilder>)
AsInvoke(Boolean)

File consent routes are always invoke routes; this override is a no-op.

(Inherited from FileConsentRouteBuilderBase<TBuilder>)
AsNonTerminal()

Marks the current route as non-terminal and returns the updated builder instance.

(Inherited from RouteBuilderBase<TBuilder>)
Build()

Builds and returns the configured route instance after validating required components.

(Inherited from RouteBuilderBase<TBuilder>)
Create()

Creates a new instance of the FileConsentDeclineRouteBuilder class for constructing route definitions.

PreBuild() (Inherited from FileConsentRouteBuilderBase<TBuilder>)
WithChannelId(ChannelId)

Sets the channel identifier for the route and returns the builder instance for method chaining.

(Inherited from RouteBuilderBase<TBuilder>)
WithHandler(FileConsentHandler)

Configures the route to use the specified handler for processing file consent decline invocations.

WithOAuthHandlers(Func<ITurnContext,String[]>)

Configures OAuth handler functions for the route using the specified delegate.

(Inherited from RouteBuilderBase<TBuilder>)
WithOAuthHandlers(String)

Configures the builder to use one or more OAuth authentication handlers specified in a delimited string.

(Inherited from RouteBuilderBase<TBuilder>)
WithOAuthHandlers(String[])

Configures the route to use the specified OAuth authentication handlers.

(Inherited from RouteBuilderBase<TBuilder>)
WithOrderRank(UInt16)

Sets the order rank for the route and returns the current builder instance for further configuration.

(Inherited from RouteBuilderBase<TBuilder>)
WithSelector(RouteSelector)

Sets the route selector used to determine how incoming requests are matched to this route builder.

(Inherited from RouteBuilderBase<TBuilder>)

Applies to