///<summary>Construct an instance bound to the currently executing http request. The id of the current request will be extracted using the supplied <see cref="IHttpRequestIdFetcher"/></summary>
        public SingleHttpRequestUseGuard(IHttpRequestIdFetcher httpRequestIdFetcher)
        {
            Contract.Requires(httpRequestIdFetcher != null);

            _httpRequestIdFetcher = httpRequestIdFetcher;
            _initialRequestId = httpRequestIdFetcher.GetCurrent();
        }
Пример #2
0
        ///<summary>Construct an instance bound to the currently executing http request. The id of the current request will be extracted using the supplied <see cref="IHttpRequestIdFetcher"/></summary>
        public SingleHttpRequestUseGuard(IHttpRequestIdFetcher httpRequestIdFetcher)
        {
            Contract.Requires(httpRequestIdFetcher != null);

            _httpRequestIdFetcher = httpRequestIdFetcher;
            _initialRequestId     = httpRequestIdFetcher.GetCurrent();
        }