public RequestHistoryResource(IStorage storage) { if (!storage.Supports<IQueryRequests>()) throw new ArgumentException($"IStorage implementation of type '{storage.GetType().FullName}' does not support IQueryRequests.", nameof(storage)); _requests = storage.As<IQueryRequests>(); }
public RequestHistoryResource(IStorage storage) { if (!storage.Supports <IQueryRequests>()) { throw new ArgumentException($"IStorage implementation of type '{storage.GetType().FullName}' does not support IQueryRequests.", nameof(storage)); } _requests = storage.As <IQueryRequests>(); }