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>();
        }
Esempio n. 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>();
        }