public StateService(IBlobCache blobCache, ILoggerService loggerService) { blobCache.AssertNotNull(nameof(blobCache)); loggerService.AssertNotNull(nameof(loggerService)); this.blobCache = blobCache; this.logger = loggerService.GetLogger(this.GetType()); this.saveCallbacks = ImmutableList <SaveCallback> .Empty; this.sync = new object(); }
public StateService(IBlobCache blobCache, ILoggerService loggerSerive) { blobCache.AssertNotNull(nameof(blobCache)); loggerSerive.AssertNotNull(nameof(loggerSerive)); _blobCache = blobCache; _logger = loggerSerive.GetLogger(this.GetType()); _saveCallbacks = new List <Func <IStateService, Task> >(); _sync = new object(); }