CosmosDatabaseFacadeExtensions.GetSessionTokens(DatabaseFacade) 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.
Gets a dictionary that contains the composite session token per container for this DbContext.
public static System.Collections.Generic.IReadOnlyDictionary<string,string?> GetSessionTokens(this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member GetSessionTokens : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> System.Collections.Generic.IReadOnlyDictionary<string, string>
<Extension()>
Public Function GetSessionTokens (databaseFacade As DatabaseFacade) As IReadOnlyDictionary(Of String, String)
Parameters
- databaseFacade
- DatabaseFacade
The DatabaseFacade for the context.
Returns
The session token dictionary.
Remarks
See https://aka.ms/efcore-docs-cosmos-session for more information.