26 references to HttpContext
Microsoft.AspNetCore.Mvc.Core (10)
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
44
var requestServices = bindingContext.
HttpContext
.RequestServices;
ModelBinding\Binders\BodyModelBinder.cs (1)
106
var httpContext = bindingContext.
HttpContext
;
ModelBinding\Binders\CancellationTokenModelBinder.cs (1)
24
var model = (object)bindingContext.
HttpContext
.RequestAborted;
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
40
var request = bindingContext.
HttpContext
.Request;
ModelBinding\Binders\FormFileModelBinder.cs (1)
140
var request = bindingContext.
HttpContext
.Request;
ModelBinding\Binders\HeaderModelBinder.cs (3)
62
var request = bindingContext.
HttpContext
.Request;
102
var request = bindingContext.
HttpContext
.Request;
125
var request = bindingContext.
HttpContext
.Request;
ModelBinding\Binders\KeyedServicesModelBinder.cs (1)
24
var keyedServices = bindingContext.
HttpContext
.RequestServices as IKeyedServiceProvider;
ModelBinding\Binders\ServicesModelBinder.cs (1)
24
var requestServices = bindingContext.
HttpContext
.RequestServices;
Microsoft.AspNetCore.Mvc.Core.Test (16)
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
39
bindingContext.
HttpContext
.RequestServices = serviceProvider;
ModelBinding\Binders\BodyModelBinderTests.cs (2)
604
bindingContext.
HttpContext
.Request.ContentType = "application/json";
633
bindingContext.
HttpContext
.Request.ContentType = "multipart/form-data";
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (1)
23
Assert.Equal(bindingContext.
HttpContext
.RequestAborted, bindingContext.Result.Model);
ModelBinding\Binders\HeaderModelBinderTests.cs (12)
28
bindingContext.
HttpContext
.Request.Headers.Add(header, new[] { headerValue });
50
bindingContext.
HttpContext
.Request.Headers.Add(header, new[] { headerValue });
77
bindingContext.
HttpContext
.Request.Headers.Add(header, new[] { headerValue });
96
bindingContext.
HttpContext
.Request.Headers.Add("Header", new[] { headerValue });
146
bindingContext.
HttpContext
.Request.Headers.Add("Header", headerValue);
206
bindingContext.
HttpContext
.Request.Headers.Add("Header", new[] { headerValue });
223
bindingContext.
HttpContext
.Request.Headers.Add("Header", "application/json,text/json");
240
bindingContext.
HttpContext
.Request.Headers.Add("Header", "application/json,text/json");
264
bindingContext.
HttpContext
.Request.Headers.Add("Header", "application/json,text/json");
286
bindingContext.
HttpContext
.Request.Headers.Add("Header", headerValue);
310
bindingContext.
HttpContext
.Request.Headers.Add("Header", headerValue);
374
var factory = TestModelBinderFactory.Create(bindingContext.
HttpContext
.RequestServices);