withSIX.Mini.Infra.Data.Services.DbContexts.ApiFactory C# (CSharp) 메소드

ApiFactory() 개인적인 메소드

private ApiFactory ( ) : ApiContext
리턴 ApiContext
        ApiContext ApiFactory() {
            var apiCtx = _apiCacheCreator();
            // Workaround for nasty issue where we get the DomainEventHandler from the same lazy instance during load :S
            _apiContext = new Lazy<IApiContext>(() => apiCtx);
            return apiCtx;
        }