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>();
        }
Beispiel #2
0
        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>();
        }