/// <summary> /// Execute logic just before request sent to http pipeline. /// </summary> /// <param name="httpWebRequest"></param> private void PreExecuteRequest(IHttpWebRequest httpWebRequest) { this.PreProcessHttpWebRequestInternal(httpWebRequest); this.PreferHeaderSetter?.Invoke(httpWebRequest); httpWebRequest.SetRequestContext(this.exchangeService); }