6 instantiations of HeaderStoreItemInfo
System.Net.Http (6)
System\Net\Http\Headers\HttpHeaders.cs (6)
155storeValueRef = info = new HeaderStoreItemInfo() { RawValue = currentValue }; 190storeValueRef = info = new HeaderStoreItemInfo { RawValue = storeValue }; 608var destinationInfo = new HeaderStoreItemInfo 697HeaderStoreItemInfo result = new HeaderStoreItemInfo(); 754var info = new HeaderStoreItemInfo() { RawValue = value }; 1007info = new HeaderStoreItemInfo();
45 references to HeaderStoreItemInfo
System.Net.Http (45)
System\Net\Http\Headers\HttpHeaders.cs (45)
16/// Key/value pairs of headers. The value is either a raw <see cref="string"/> or a <see cref="HttpHeaders.HeaderStoreItemInfo"/>. 84PrepareHeaderInfoForAdd(descriptor, out HeaderStoreItemInfo info, out bool addToStore); 103PrepareHeaderInfoForAdd(descriptor, out HeaderStoreItemInfo info, out bool addToStore); 150if (currentValue is not HeaderStoreItemInfo info) 188if (storeValue is not HeaderStoreItemInfo info) 255if (TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 346if (entry.Value is not HeaderStoreItemInfo info) 382HeaderStoreItemInfo info = GetOrCreateHeaderInfo(descriptor); 398HeaderStoreItemInfo info = GetOrCreateHeaderInfo(descriptor); 426if (TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 504if (TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 575if (entry.Value is HeaderStoreItemInfo info) 590if (sourceValue is HeaderStoreItemInfo info) 604private static HeaderStoreItemInfo CloneHeaderInfo(HeaderDescriptor descriptor, HeaderStoreItemInfo sourceInfo) 608var destinationInfo = new HeaderStoreItemInfo 643private static void CloneAndAddValue(HeaderStoreItemInfo destinationInfo, object source) 680private HeaderStoreItemInfo GetOrCreateHeaderInfo(HeaderDescriptor descriptor) 682if (TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 692private HeaderStoreItemInfo CreateAndAddHeaderToStore(HeaderDescriptor descriptor) 697HeaderStoreItemInfo result = new HeaderStoreItemInfo(); 722private bool TryGetAndParseHeaderInfo(HeaderDescriptor key, [NotNullWhen(true)] out HeaderStoreItemInfo? info) 729info = value is HeaderStoreItemInfo hsi 742/// Replaces <paramref name="storeValueRef"/> with a new <see cref="HeaderStoreItemInfo"/>, 743/// or returns the existing <see cref="HeaderStoreItemInfo"/> if a different thread beat us to it. 750private static HeaderStoreItemInfo ReplaceWithHeaderStoreItemInfo(ref object storeValueRef, object value) 754var info = new HeaderStoreItemInfo() { RawValue = value }; 763return (HeaderStoreItemInfo)previousValue; 766private static void ParseRawHeaderValues(HeaderDescriptor descriptor, HeaderStoreItemInfo info) 796private static void ParseSingleRawHeaderValue(HeaderStoreItemInfo info, HeaderDescriptor descriptor, string rawValue) 826HeaderStoreItemInfo info; 845private static bool TryParseAndAddRawHeaderValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, string? value, bool addWhenInvalid) 931private static void AddParsedValue(HeaderStoreItemInfo info, object value) 940private static void AddInvalidValue(HeaderStoreItemInfo info, string value) 945private static void AddRawValue(HeaderStoreItemInfo info, string value) 977if (!TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 987if (!TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 997private void PrepareHeaderInfoForAdd(HeaderDescriptor descriptor, out HeaderStoreItemInfo info, out bool addToStore) 1012private static void ParseAndAddValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, string? value) 1135internal static string[] GetStoreValuesAsStringArray(HeaderDescriptor descriptor, HeaderStoreItemInfo info) 1144HeaderStoreItemInfo? info = sourceValues as HeaderStoreItemInfo; 1182HeaderStoreItemInfo? info = sourceValues as HeaderStoreItemInfo; 1215private static int GetValueCount(HeaderStoreItemInfo info)