Language

TurnStateLoader Constructor

Definition

Initializes a new instance of the TurnStateLoader class.

public TurnStateLoader(Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, Microsoft.Extensions.Options.IOptions<Microsoft.Teams.Apps.State.TurnStateOptions> options, Microsoft.Extensions.Logging.ILogger<Microsoft.Teams.Apps.State.TurnStateLoader> logger);
new Microsoft.Teams.Apps.State.TurnStateLoader : Microsoft.Extensions.Caching.Distributed.IDistributedCache * Microsoft.Extensions.Options.IOptions<Microsoft.Teams.Apps.State.TurnStateOptions> * Microsoft.Extensions.Logging.ILogger<Microsoft.Teams.Apps.State.TurnStateLoader> -> Microsoft.Teams.Apps.State.TurnStateLoader
Public Sub New (cache As IDistributedCache, options As IOptions(Of TurnStateOptions), logger As ILogger(Of TurnStateLoader))

Parameters

cache
IDistributedCache

The distributed cache used to persist turn state.

options
IOptions<TurnStateOptions>

Options controlling cache entry lifetime.

logger
ILogger<TurnStateLoader>

Logger for diagnostics.

Applies to