Example #1
0
        /// <summary>Processes the HTTP response request processing.</summary>
        /// <param name="context">The context.</param>
        /// <param name="contextResolver">The API request context resolver.</param>
        /// <param name="apiServiceConfiguration">The API service configuration.</param>
        /// <returns></returns>
        public static async Task <bool> ProcessHttpResponseRequestProcessing(
            this ApiRequestContext context,
            IApiRequestContextResolver contextResolver,
            IDeepSleepServiceConfiguration apiServiceConfiguration)
        {
            if (apiServiceConfiguration?.OnRequestProcessed != null)
            {
                try
                {
                    await apiServiceConfiguration.OnRequestProcessed(contextResolver).ConfigureAwait(false);
                }
                catch { }
            }

            return(true);
        }