C# Class withSIX.Mini.Infra.Data.Services.DbContextScope

Inheritance: IDbContextScope
Afficher le fichier Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Méthodes publiques

Méthode Description
ApiContext ( ) : IApiContext
ContentLinkContext ( ) : IContentFolderLinkContext
DbContextScope ( ILocalCache cache, Func apiContextCreator, ISettingsStorage settingsStorage ) : System
Dispose ( ) : void
GameContext ( ) : IGameContext
SaveChanges ( ) : void
SaveChangesAsync ( ) : System.Threading.Tasks.Task
SettingsContext ( ) : ISettingsStorage

Private Methods

Méthode Description
GetAmbientScope ( ) : DbContextScope

Get the current ambient scope or null if no ambient scope has been setup.

GetIdentifier ( ) : object
HideAmbientScope ( ) : void

Clears the ambient scope from the CallContext but keeps tracking its instance. Call this to temporarily hide the ambient context (e.g. to prevent it from being captured by parallel task).

RemoveAmbientScope ( ) : void

Clears the ambient scope from the CallContext and stops tracking its instance. Call this when a DbContextScope is being disposed.

SetAmbientScope ( DbContextScope newAmbientScope ) : void

Makes the provided 'dbContextScope' available as the the ambient scope via the CallContext.

SetId ( object id ) : void

Method Details

ApiContext() public méthode

public ApiContext ( ) : IApiContext
Résultat IApiContext

ContentLinkContext() public méthode

public ContentLinkContext ( ) : IContentFolderLinkContext
Résultat IContentFolderLinkContext

DbContextScope() public méthode

public DbContextScope ( ILocalCache cache, Func apiContextCreator, ISettingsStorage settingsStorage ) : System
cache ILocalCache
apiContextCreator Func
settingsStorage ISettingsStorage
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GameContext() public méthode

public GameContext ( ) : IGameContext
Résultat IGameContext

SaveChanges() public méthode

public SaveChanges ( ) : void
Résultat void

SaveChangesAsync() public méthode

public SaveChangesAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

SettingsContext() public méthode

public SettingsContext ( ) : ISettingsStorage
Résultat ISettingsStorage