示例#1
0
        public static Task <IEventLogStorage?> CreateAsync(
            EventLogStorageOptions options,
            IJsonSerializerFacade jsonSerializerFacade,
            ILocalFileSystem?localFileSystem = default,
            ISystemClock?systemClock         = default)
        {
            var result = new EventLogStorage(options, jsonSerializerFacade, localFileSystem, systemClock);

            result.Initialize();
            //await result.InitializeAsync();
            return(Task.FromResult <IEventLogStorage?>(result));
        }
 public Task <IEventLogStorage?> CreateAsync(EventLogStorageOptions options)
 {
     return(EventLogStorage.CreateAsync(options, this._JsonSerializerFacade, this._LocalFileSystem, this._SystemClock));
 }