public HttpReceiveContext(IOwinContext requestContext, bool redelivered, IReceiveObserver receiveObserver, IReceiveEndpointTopology topology) : base(requestContext.Request.Uri, redelivered, receiveObserver, topology) { _requestContext = requestContext; HeaderProvider = new HttpHeaderProvider(requestContext.Request.Headers); }
public HttpReceiveContext(HttpContext httpContext, bool redelivered, IReceiveObserver receiveObserver, ReceiveEndpointContext topology) : base(new Uri(httpContext.Request.GetDisplayUrl()), redelivered, receiveObserver, topology) { _httpContext = httpContext; HeaderProvider = new HttpHeaderProvider(httpContext.Request.Headers); }
public HttpReceiveContext(HttpContext httpContext, bool redelivered, ReceiveEndpointContext topology) : base(redelivered, topology) { _httpContext = httpContext; HeaderProvider = new HttpHeaderProvider(httpContext.Request.Headers); }
public HttpReceiveContext(IOwinContext requestContext, bool redelivered, IReceiveObserver receiveObserver, ISendEndpointProvider sendEndpointProvider, IPublishEndpointProvider publishEndpointProvider) : base(requestContext.Request.Uri, redelivered, receiveObserver, sendEndpointProvider, publishEndpointProvider) { _requestContext = requestContext; HeaderProvider = new HttpHeaderProvider(requestContext.Request.Headers); }
public HttpReceiveContext(IOwinContext requestContext, bool redelivered, IReceiveObserver receiveObserver, ISendEndpointProvider sendEndpointProvider, IPublishEndpointProvider publishEndpointProvider) : base(requestContext.Request.Uri, redelivered, receiveObserver, sendEndpointProvider, publishEndpointProvider) { _requestContext = requestContext; HeaderProvider = new HttpHeaderProvider(requestContext.Request.Headers); }
private void SelectedIndexChanged(object sender, EventArgs e) { var listView = (ListView)sender; if (0 < listView.SelectedItems.Count) { var header = listView.SelectedItems[0].Text; buttonEdit.Enabled = buttonRemove.Enabled = HttpHeaderProvider.IsEditable(header); } }
public HttpHeaderForm(IEnumerable <string> existsHeaders) { InitializeComponent(); Text = "Add Http Header"; foreach (var header in HttpHeaderProvider.GetEditableHeaders()) { if (existsHeaders != null && !existsHeaders.Contains(header, StringComparer.InvariantCultureIgnoreCase)) { comboBoxHeader.Items.Add(header); } } }
public void SetHttpHeaders(WebHeaderCollection headers) { listViewHeaders.BeginUpdate(); try { listViewHeaders.Items.Clear(); foreach (string header in headers) { var foreColor = Color.FromKnownColor(HttpHeaderProvider.IsEditable(header) ? KnownColor.WindowText : KnownColor.InactiveCaption); var item = new ListViewItem(new[] { header, headers[header] }, -1, foreColor, listViewHeaders.BackColor, null); listViewHeaders.Items.Add(item); } } finally { listViewHeaders.EndUpdate(); } }
private void comboBoxHeader_TextChanged(object sender, EventArgs e) { buttonOK.Enabled = 0 < comboBoxHeader.Text.Trim().Length; var values = HttpHeaderProvider.GetHeaderValues(comboBoxHeader.Text); if (0 < values.Length) { comboBoxValue.Items.Clear(); foreach (var value in values) { comboBoxValue.Items.Add(value); } } else { if (0 < comboBoxValue.Items.Count) { comboBoxValue.Items.Clear(); } } }