C# 클래스 withSIX.Mini.Infra.Data.Services.DbContextScope

상속: IDbContextScope
파일 보기 프로젝트 열기: SIXNetworks/withSIX.Desktop 1 사용 예제들

공개 메소드들

메소드 설명
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