CosmosDatabaseFacadeExtensions.UseSessionTokens 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.
Sets the composite sessions token per container for this DbContext with the tokens specified in
sessionTokens.
public static void UseSessionTokens(this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Collections.Generic.IReadOnlyDictionary<string,string?> sessionTokens);
static member UseSessionTokens : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade * System.Collections.Generic.IReadOnlyDictionary<string, string> -> unit
<Extension()>
Public Sub UseSessionTokens (databaseFacade As DatabaseFacade, sessionTokens As IReadOnlyDictionary(Of String, String))
Parameters
- databaseFacade
- DatabaseFacade
The DatabaseFacade for the context.
- sessionTokens
- IReadOnlyDictionary<String,String>
The session tokens to set per container.
Remarks
See https://aka.ms/efcore-docs-cosmos-session for more information.