26 references to ToArray
Microsoft.AspNetCore.Authentication.Cookies (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
279var values = existingValues.ToArray();
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
OpenIdConnectHandler.cs (5)
117message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 132message = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 321var message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 644authorizationResponse = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 671authorizationResponse = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
Microsoft.AspNetCore.Authentication.WsFederation (2)
WsFederationHandler.cs (2)
164wsFederationMessage = new WsFederationMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 474var message = new WsFederationMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
279var values = existingValues.ToArray();
Microsoft.AspNetCore.HeaderPropagation (1)
HeaderPropagationMessageHandler.cs (1)
77var values = stringValues.ToArray();
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
148var values = existingValues.ToArray();
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelStateDictionary.cs (1)
505rawValue = valueProviderResult.Values.ToArray();
ModelBinding\ValueProviderResult.cs (1)
162return result.Values.ToArray();
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
279var values = existingValues.ToArray();
Microsoft.AspNetCore.OutputCaching (3)
OutputCacheKeyProvider.cs (3)
174var headerValuesArray = headerValues.ToArray(); 221var queryValueArray = queryArray[i].Value.ToArray(); 255var queryValueArray = queryKeyValues.ToArray();
Microsoft.AspNetCore.ResponseCaching (4)
ResponseCachingKeyProvider.cs (3)
119var headerValuesArray = headerValues.ToArray(); 157var queryValueArray = queryArray[i].Value.ToArray(); 182var queryValueArray = queryKeyValues.ToArray();
ResponseCachingMiddleware.cs (1)
528var originalArray = stringValues.ToArray();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpRequestHeaders.cs (1)
55_headers._Cookie = string.Join("; ", _headers._Cookie.ToArray());
Microsoft.AspNetCore.SpaServices.Extensions (2)
Proxying\SpaProxy.cs (2)
152if (!requestMessage.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray()) && requestMessage.Content != null) 154requestMessage.Content?.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray());
Microsoft.AspNetCore.WebUtilities (1)
KeyValueAccumulator.cs (1)
54var array = values.ToArray();
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
844public string?[] Items => values.ToArray();