4 instantiations of ContentDispositionHeaderValue
dotnet-openapi (1)
HttpClientWrapper.cs (1)
61return new ContentDispositionHeaderValue(disposition.First());
Microsoft.DotNet.Open.Api.Tools.Tests (3)
OpenApiTestBase.cs (3)
92var noExtension = new ContentDispositionHeaderValue("attachment"); 94var extension = new ContentDispositionHeaderValue("attachment"); 96var justAttachments = new ContentDispositionHeaderValue("attachment");
21 references to ContentDispositionHeaderValue
dotnet-openapi (3)
Commands\BaseCommand.cs (1)
368var contentDisposition = response.ContentDisposition();
HttpClientWrapper.cs (1)
57public ContentDispositionHeaderValue ContentDisposition()
IHttpResponseMessageWrapper.cs (1)
15ContentDispositionHeaderValue ContentDisposition();
Microsoft.DotNet.Open.Api.Tools.Tests (13)
OpenApiTestBase.cs (13)
90private static IDictionary<string, Tuple<string, ContentDispositionHeaderValue>> DownloadMock() 92var noExtension = new ContentDispositionHeaderValue("attachment"); 94var extension = new ContentDispositionHeaderValue("attachment"); 96var justAttachments = new ContentDispositionHeaderValue("attachment"); 98return new Dictionary<string, Tuple<string, ContentDispositionHeaderValue>> { 100{ DifferentUrl, Tuple.Create<string, ContentDispositionHeaderValue>(DifferentUrlContent, null) }, 101{ PackageUrl, Tuple.Create<string, ContentDispositionHeaderValue>(PackageUrlContent, null) }, 102{ NoDispositionUrl, Tuple.Create<string, ContentDispositionHeaderValue>(Content, null) }, 124private readonly IDictionary<string, Tuple<string, ContentDispositionHeaderValue>> _results; 126public TestHttpClientWrapper(IDictionary<string, Tuple<string, ContentDispositionHeaderValue>> results) 164private readonly ContentDispositionHeaderValue _contentDisposition; 168ContentDispositionHeaderValue header) 178public ContentDispositionHeaderValue ContentDisposition()
netstandard (1)
netstandard.cs (1)
1100[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.ContentDispositionHeaderValue))]
System.Net.Http (4)
artifacts\obj\System.Net.Http\Debug\net10.0\System.Net.Http.notsupported.cs (4)
533protected ContentDispositionHeaderValue(System.Net.Http.Headers.ContentDispositionHeaderValue source) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } 546public static System.Net.Http.Headers.ContentDispositionHeaderValue Parse(string input) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } 549public static bool TryParse([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? input, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Net.Http.Headers.ContentDispositionHeaderValue? parsedValue) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } 607public System.Net.Http.Headers.ContentDispositionHeaderValue? ContentDisposition { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } }