C# Класс withSIX.Mini.Infra.Data.Services.DbContextScope

Наследование: IDbContextScope
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ApiContext() публичный Метод

public ApiContext ( ) : IApiContext
Результат IApiContext

ContentLinkContext() публичный Метод

public ContentLinkContext ( ) : IContentFolderLinkContext
Результат IContentFolderLinkContext

DbContextScope() публичный Метод

public DbContextScope ( ILocalCache cache, Func apiContextCreator, ISettingsStorage settingsStorage ) : System
cache ILocalCache
apiContextCreator Func
settingsStorage ISettingsStorage
Результат System

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GameContext() публичный Метод

public GameContext ( ) : IGameContext
Результат IGameContext

SaveChanges() публичный Метод

public SaveChanges ( ) : void
Результат void

SaveChangesAsync() публичный Метод

public SaveChangesAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SettingsContext() публичный Метод

public SettingsContext ( ) : ISettingsStorage
Результат ISettingsStorage