From 7256b353b34c9ae88d5b9cb160a5f732ef357598 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Thu, 12 Dec 2019 14:45:24 -0800 Subject: [PATCH] Update `internal` types and members in *.Manual.cs files - match changes that are in 'release/3.1' but not 'release/3.0' - e.g. `StaticComponentRenderer`'s namespace change and newly-added members - redo GenAPI exclusions - remove some unecessary workarounds getting in the way of keeping up w/ API changes - add more GenAPI exclusions, enabling `--all` without hitting dotnet/arcade#4488 --- eng/GenAPI.exclusions.txt | 59 ++----- .../Microsoft.AspNetCore.Components.Manual.cs | 71 ++++----- ...rosoft.AspNetCore.Components.netcoreapp.cs | 31 ++++ ...ft.AspNetCore.Components.netstandard2.0.cs | 31 ++++ ...oft.AspNetCore.Components.Server.Manual.cs | 28 +++- .../ref/Microsoft.AspNetCore.Http.Manual.cs | 22 +++ .../Microsoft.AspNetCore.Mvc.Core.Manual.cs | 17 +- .../Microsoft.AspNetCore.Mvc.Razor.Manual.cs | 1 - ...crosoft.AspNetCore.Mvc.Razor.netcoreapp.cs | 7 + ...soft.AspNetCore.Mvc.ViewFeatures.Manual.cs | 38 +++-- ...rosoft.AspNetCore.Server.HttpSys.Manual.cs | 147 ++++++++++++++++++ 11 files changed, 346 insertions(+), 106 deletions(-) diff --git a/eng/GenAPI.exclusions.txt b/eng/GenAPI.exclusions.txt index 5c90c6c4db..810c09e52c 100644 --- a/eng/GenAPI.exclusions.txt +++ b/eng/GenAPI.exclusions.txt @@ -4,53 +4,22 @@ T:Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame T:Microsoft.AspNetCore.Mvc.ApplicationModels.PageParameterModel T:Microsoft.AspNetCore.Mvc.ApplicationModels.PagePropertyModel # Manually implemented - Need to include internal setter -T:Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider -F:Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider.{Cache}k__BackingField -M:Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider.#ctor P:Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider.Cache -M:Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider.get_Cache -M:Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider.set_Cache(Microsoft.Extensions.Caching.Memory.IMemoryCache) -# Manually implemented - Need to include internal setter -P:Microsoft.AspNetCore.Routing.Matching.CandidateState.Values -# Manually implemented - Need to include internal setter -P:Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.KestrelServerOptions -# Manually implemented - Need to include private fields in struct with sequential layout -T:Microsoft.AspNetCore.Components.RenderHandle -P:Microsoft.AspNetCore.Components.RenderHandle.Dispatcher -P:Microsoft.AspNetCore.Components.RenderHandle.IsInitialized -M:Microsoft.AspNetCore.Components.RenderHandle.get_Dispatcher -M:Microsoft.AspNetCore.Components.RenderHandle.get_IsInitialized -M:Microsoft.AspNetCore.Components.RenderHandle.Render(Microsoft.AspNetCore.Components.RenderFragment) -T:Microsoft.AspNetCore.Components.ParameterView -P:Microsoft.AspNetCore.Components.ParameterView.Empty -M:Microsoft.AspNetCore.Components.ParameterView.FromDictionary(System.Collections.Generic.IDictionary{System.String,System.Object}) -M:Microsoft.AspNetCore.Components.ParameterView.GetEnumerator -M:Microsoft.AspNetCore.Components.ParameterView.GetValueOrDefault``1(System.String) -M:Microsoft.AspNetCore.Components.ParameterView.GetValueOrDefault``1(System.String,``0) -M:Microsoft.AspNetCore.Components.ParameterView.get_Empty -M:Microsoft.AspNetCore.Components.ParameterView.SetParameterProperties(System.Object) -M:Microsoft.AspNetCore.Components.ParameterView.ToDictionary -M:Microsoft.AspNetCore.Components.ParameterView.TryGetValue``1(System.String,``0@) -T:Microsoft.AspNetCore.Components.ParameterView.Enumerator -P:Microsoft.AspNetCore.Components.ParameterView.Enumerator.Current -M:Microsoft.AspNetCore.Components.ParameterView.Enumerator.get_Current -M:Microsoft.AspNetCore.Components.ParameterView.Enumerator.MoveNext -T:Microsoft.AspNetCore.Components.EventCallback -F:Microsoft.AspNetCore.Components.EventCallback.Empty -F:Microsoft.AspNetCore.Components.EventCallback.Factory -M:Microsoft.AspNetCore.Components.EventCallback.#ctor(Microsoft.AspNetCore.Components.IHandleEvent,System.MulticastDelegate) -P:Microsoft.AspNetCore.Components.EventCallback.HasDelegate -M:Microsoft.AspNetCore.Components.EventCallback.get_HasDelegate -M:Microsoft.AspNetCore.Components.EventCallback.InvokeAsync(System.Object) -T:Microsoft.AspNetCore.Components.EventCallback`1 -F:Microsoft.AspNetCore.Components.EventCallback`1.Empty -M:Microsoft.AspNetCore.Components.EventCallback`1.#ctor(Microsoft.AspNetCore.Components.IHandleEvent,System.MulticastDelegate) -P:Microsoft.AspNetCore.Components.EventCallback`1.HasDelegate -M:Microsoft.AspNetCore.Components.EventCallback`1.get_HasDelegate -M:Microsoft.AspNetCore.Components.EventCallback`1.InvokeAsync(`0) -# Manually implemented - Need to include internal setter P:Microsoft.AspNetCore.Mvc.RazorPages.RazorPagesOptions.Conventions +P:Microsoft.AspNetCore.Routing.Matching.CandidateState.Values +P:Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.KestrelServerOptions +# public structs with public fields that GenAPI doesn't handle +T:Microsoft.AspNetCore.Components.EventCallback +T:Microsoft.AspNetCore.Components.EventCallback`1 # Break GenAPI - https://github.com/dotnet/arcade/issues/4488 -T:Microsoft.AspNetCore.Mvc.ApplicationModels.ActionAttributeRouteModel.d__3 T:Microsoft.AspNetCore.Components.Rendering.HtmlRenderer.d__17 T:Microsoft.AspNetCore.Components.Rendering.HtmlRenderer.d__8 +T:Microsoft.AspNetCore.Mvc.ApplicationModels.ActionAttributeRouteModel.<>c +T:Microsoft.AspNetCore.Mvc.ApplicationModels.ActionAttributeRouteModel.d__3 +T:Microsoft.AspNetCore.Mvc.ControllerBase.d__181`1 +T:Microsoft.AspNetCore.Mvc.ControllerBase.d__183`1 +T:Microsoft.AspNetCore.Mvc.ControllerBase.d__184`1 +T:Microsoft.AspNetCore.Mvc.ControllerBase.d__187 +T:Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0 +T:Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider.d__4 +T:Microsoft.AspNetCore.Mvc.Routing.ConsumesMatcherPolicy.<>c diff --git a/src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs b/src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs index 8bf6b1a422..e1f91bdbcb 100644 --- a/src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs +++ b/src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs @@ -15,15 +15,9 @@ namespace Microsoft.AspNetCore.Components { internal static string NormalizeBaseUri(string baseUri) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RenderHandle { - private readonly Microsoft.AspNetCore.Components.RenderTree.Renderer _renderer; - private readonly int _componentId; internal RenderHandle(Microsoft.AspNetCore.Components.RenderTree.Renderer renderer, int componentId) { throw null; } - public Microsoft.AspNetCore.Components.Dispatcher Dispatcher { get { throw null; } } - public bool IsInitialized { get { throw null; } } - public void Render(Microsoft.AspNetCore.Components.RenderFragment renderFragment) { } } internal partial class ComponentFactory { @@ -31,33 +25,13 @@ namespace Microsoft.AspNetCore.Components public ComponentFactory() { } public Microsoft.AspNetCore.Components.IComponent InstantiateComponent(System.IServiceProvider serviceProvider, System.Type componentType) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ParameterView { - private readonly Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame[] _frames; - private readonly int _ownerIndex; - private readonly System.Collections.Generic.IReadOnlyList _cascadingParametersOrNull; - internal ParameterView(Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame[] frames, int ownerIndex) { throw null; } - public static Microsoft.AspNetCore.Components.ParameterView Empty { get { throw null; } } + internal ParameterView(in Microsoft.AspNetCore.Components.Rendering.ParameterViewLifetime lifetime, Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame[] frames, int ownerIndex) { throw null; } + internal Microsoft.AspNetCore.Components.Rendering.ParameterViewLifetime Lifetime { get { throw null; } } internal void CaptureSnapshot(Microsoft.AspNetCore.Components.RenderTree.ArrayBuilder builder) { } internal bool DefinitelyEquals(Microsoft.AspNetCore.Components.ParameterView oldParameters) { throw null; } - public static Microsoft.AspNetCore.Components.ParameterView FromDictionary(System.Collections.Generic.IDictionary parameters) { throw null; } - public Microsoft.AspNetCore.Components.ParameterView.Enumerator GetEnumerator() { throw null; } - public TValue GetValueOrDefault(string parameterName) { throw null; } - public TValue GetValueOrDefault(string parameterName, TValue defaultValue) { throw null; } - public void SetParameterProperties(object target) { } - public System.Collections.Generic.IReadOnlyDictionary ToDictionary() { throw null; } - public bool TryGetValue(string parameterName, out TValue result) { throw null; } internal Microsoft.AspNetCore.Components.ParameterView WithCascadingParameters(System.Collections.Generic.IReadOnlyList cascadingParameters) { throw null; } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public partial struct Enumerator - { - private object _dummy; - private int _dummyPrimitive; - internal Enumerator(Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame[] frames, int ownerIndex, System.Collections.Generic.IReadOnlyList cascadingParameters) { throw null; } - public Microsoft.AspNetCore.Components.ParameterValue Current { get { throw null; } } - public bool MoveNext() { throw null; } - } } internal static partial class RouteTableFactory { @@ -72,29 +46,31 @@ namespace Microsoft.AspNetCore.Components bool HasDelegate { get; } object UnpackForRenderTree(); } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EventCallback : Microsoft.AspNetCore.Components.IEventCallback { - internal readonly MulticastDelegate Delegate; - internal readonly IHandleEvent Receiver; - internal bool RequiresExplicitReceiver { get { throw null; } } - object Microsoft.AspNetCore.Components.IEventCallback.UnpackForRenderTree() { throw null; } public static readonly Microsoft.AspNetCore.Components.EventCallback Empty; public static readonly Microsoft.AspNetCore.Components.EventCallbackFactory Factory; - public EventCallback(Microsoft.AspNetCore.Components.IHandleEvent receiver, System.MulticastDelegate @delegate) { throw null; } - public bool HasDelegate { get { throw null; } } - public System.Threading.Tasks.Task InvokeAsync(object arg) { throw null; } - } - public readonly partial struct EventCallback : Microsoft.AspNetCore.Components.IEventCallback - { internal readonly MulticastDelegate Delegate; internal readonly IHandleEvent Receiver; - internal bool RequiresExplicitReceiver { get { throw null; } } - internal Microsoft.AspNetCore.Components.EventCallback AsUntyped() { throw null; } - object Microsoft.AspNetCore.Components.IEventCallback.UnpackForRenderTree() { throw null; } - public static readonly Microsoft.AspNetCore.Components.EventCallback Empty; public EventCallback(Microsoft.AspNetCore.Components.IHandleEvent receiver, System.MulticastDelegate @delegate) { throw null; } public bool HasDelegate { get { throw null; } } + internal bool RequiresExplicitReceiver { get { throw null; } } + public System.Threading.Tasks.Task InvokeAsync(object arg) { throw null; } + object Microsoft.AspNetCore.Components.IEventCallback.UnpackForRenderTree() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EventCallback : Microsoft.AspNetCore.Components.IEventCallback + { + public static readonly Microsoft.AspNetCore.Components.EventCallback Empty; + internal readonly MulticastDelegate Delegate; + internal readonly IHandleEvent Receiver; + public EventCallback(Microsoft.AspNetCore.Components.IHandleEvent receiver, System.MulticastDelegate @delegate) { throw null; } + public bool HasDelegate { get { throw null; } } + internal bool RequiresExplicitReceiver { get { throw null; } } + internal Microsoft.AspNetCore.Components.EventCallback AsUntyped() { throw null; } public System.Threading.Tasks.Task InvokeAsync(TValue arg) { throw null; } + object Microsoft.AspNetCore.Components.IEventCallback.UnpackForRenderTree() { throw null; } } internal partial interface ICascadingValueComponent { @@ -239,6 +215,15 @@ namespace Microsoft.AspNetCore.Components.RenderTree } namespace Microsoft.AspNetCore.Components.Rendering { + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + internal readonly partial struct ParameterViewLifetime + { + public static readonly ParameterViewLifetime Unbound = default; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ParameterViewLifetime(Microsoft.AspNetCore.Components.Rendering.RenderBatchBuilder owner) { throw null; } + public void AssertNotExpired() { } + } [System.Diagnostics.DebuggerDisplayAttribute("{_state,nq}")] internal partial class RendererSynchronizationContext : System.Threading.SynchronizationContext { @@ -269,10 +254,12 @@ namespace Microsoft.AspNetCore.Components.Rendering public Microsoft.AspNetCore.Components.RenderTree.ArrayBuilder DisposedEventHandlerIds { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Components.RenderTree.ArrayBuilder EditsBuffer { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } internal Microsoft.AspNetCore.Components.RenderTree.StackObjectPool> KeyedItemInfoDictionaryPool { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } + public int ParameterViewValidityStamp { get { throw null; } } public Microsoft.AspNetCore.Components.RenderTree.ArrayBuilder ReferenceFramesBuffer { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public Microsoft.AspNetCore.Components.RenderTree.ArrayBuilder UpdatedComponentDiffs { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public void ClearStateForCurrentBatch() { } public void Dispose() { } + public void InvalidateParameterViews() { } public Microsoft.AspNetCore.Components.RenderTree.RenderBatch ToBatch() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] diff --git a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netcoreapp.cs b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netcoreapp.cs index 7f340b72d3..a62693a5d9 100644 --- a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netcoreapp.cs +++ b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netcoreapp.cs @@ -294,8 +294,39 @@ namespace Microsoft.AspNetCore.Components public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public object Value { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ParameterView + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public static Microsoft.AspNetCore.Components.ParameterView Empty { get { throw null; } } + public static Microsoft.AspNetCore.Components.ParameterView FromDictionary(System.Collections.Generic.IDictionary parameters) { throw null; } + public Microsoft.AspNetCore.Components.ParameterView.Enumerator GetEnumerator() { throw null; } + public TValue GetValueOrDefault(string parameterName) { throw null; } + public TValue GetValueOrDefault(string parameterName, TValue defaultValue) { throw null; } + public void SetParameterProperties(object target) { } + public System.Collections.Generic.IReadOnlyDictionary ToDictionary() { throw null; } + public bool TryGetValue(string parameterName, out TValue result) { throw null; } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct Enumerator + { + private object _dummy; + private int _dummyPrimitive; + public Microsoft.AspNetCore.Components.ParameterValue Current { get { throw null; } } + public bool MoveNext() { throw null; } + } + } public delegate void RenderFragment(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder); public delegate Microsoft.AspNetCore.Components.RenderFragment RenderFragment(TValue value); + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RenderHandle + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Microsoft.AspNetCore.Components.Dispatcher Dispatcher { get { throw null; } } + public bool IsInitialized { get { throw null; } } + public void Render(Microsoft.AspNetCore.Components.RenderFragment renderFragment) { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)] public sealed partial class RouteAttribute : System.Attribute { diff --git a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs index 7f340b72d3..a62693a5d9 100644 --- a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs +++ b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs @@ -294,8 +294,39 @@ namespace Microsoft.AspNetCore.Components public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public object Value { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ParameterView + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public static Microsoft.AspNetCore.Components.ParameterView Empty { get { throw null; } } + public static Microsoft.AspNetCore.Components.ParameterView FromDictionary(System.Collections.Generic.IDictionary parameters) { throw null; } + public Microsoft.AspNetCore.Components.ParameterView.Enumerator GetEnumerator() { throw null; } + public TValue GetValueOrDefault(string parameterName) { throw null; } + public TValue GetValueOrDefault(string parameterName, TValue defaultValue) { throw null; } + public void SetParameterProperties(object target) { } + public System.Collections.Generic.IReadOnlyDictionary ToDictionary() { throw null; } + public bool TryGetValue(string parameterName, out TValue result) { throw null; } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct Enumerator + { + private object _dummy; + private int _dummyPrimitive; + public Microsoft.AspNetCore.Components.ParameterValue Current { get { throw null; } } + public bool MoveNext() { throw null; } + } + } public delegate void RenderFragment(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder); public delegate Microsoft.AspNetCore.Components.RenderFragment RenderFragment(TValue value); + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RenderHandle + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Microsoft.AspNetCore.Components.Dispatcher Dispatcher { get { throw null; } } + public bool IsInitialized { get { throw null; } } + public void Render(Microsoft.AspNetCore.Components.RenderFragment renderFragment) { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)] public sealed partial class RouteAttribute : System.Attribute { diff --git a/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs b/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs index 9e86855bb6..b13545dee9 100644 --- a/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs +++ b/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs @@ -3,12 +3,28 @@ namespace Microsoft.AspNetCore.Components { + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + internal partial struct ComponentParameter + { + private object _dummy; + public string Assembly { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public string TypeName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public static (System.Collections.Generic.IList parameterDefinitions, System.Collections.Generic.IList parameterValues) FromParameterView(Microsoft.AspNetCore.Components.ParameterView parameters) { throw null; } + } + internal partial class ComponentParametersTypeCache + { + public ComponentParametersTypeCache() { } + public System.Type GetParameterType(string assembly, string type) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal partial struct ServerComponent { - public ServerComponent(int sequence, string assemblyName, string typeName, System.Guid invocationId) { throw null; } + public ServerComponent(int sequence, string assemblyName, string typeName, System.Collections.Generic.IList parametersDefinitions, System.Collections.Generic.IList parameterValues, System.Guid invocationId) { throw null; } public string AssemblyName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public System.Guid InvocationId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public System.Collections.Generic.IList ParameterDefinitions { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public System.Collections.Generic.IList ParameterValues { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public int Sequence { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public string TypeName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } } @@ -55,15 +71,16 @@ namespace Microsoft.AspNetCore.Components.Server } internal partial class ServerComponentDeserializer { - public ServerComponentDeserializer(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Logging.ILogger logger, Microsoft.AspNetCore.Components.ServerComponentTypeCache rootComponentTypeCache) { } + public ServerComponentDeserializer(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Logging.ILogger logger, Microsoft.AspNetCore.Components.ServerComponentTypeCache rootComponentTypeCache, Microsoft.AspNetCore.Components.Server.ComponentParameterDeserializer parametersDeserializer) { } public bool TryDeserializeComponentDescriptorCollection(string serializedComponentRecords, out System.Collections.Generic.List descriptors) { throw null; } } internal partial class ComponentDescriptor { public ComponentDescriptor() { } public System.Type ComponentType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public Microsoft.AspNetCore.Components.ParameterView Parameters { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public int Sequence { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } - public void Deconstruct(out System.Type componentType, out int sequence) { throw null; } + public void Deconstruct(out System.Type componentType, out Microsoft.AspNetCore.Components.ParameterView parameters, out int sequence) { throw null; } } internal sealed partial class ComponentHub : Microsoft.AspNetCore.SignalR.Hub { @@ -85,6 +102,11 @@ namespace Microsoft.AspNetCore.Components.Server [System.Diagnostics.DebuggerStepThroughAttribute] public System.Threading.Tasks.ValueTask StartCircuit(string baseUri, string uri, string serializedComponentRecords) { throw null; } } + internal partial class ComponentParameterDeserializer + { + public ComponentParameterDeserializer(Microsoft.Extensions.Logging.ILogger logger, Microsoft.AspNetCore.Components.ComponentParametersTypeCache parametersCache) { } + public bool TryDeserializeParameters(System.Collections.Generic.IList parametersDefinitions, System.Collections.Generic.IList parameterValues, out Microsoft.AspNetCore.Components.ParameterView parameters) { throw null; } + } } namespace Microsoft.AspNetCore.Components.Server.BlazorPack { diff --git a/src/Http/Http/ref/Microsoft.AspNetCore.Http.Manual.cs b/src/Http/Http/ref/Microsoft.AspNetCore.Http.Manual.cs index 9709a96e49..67edcfae2a 100644 --- a/src/Http/Http/ref/Microsoft.AspNetCore.Http.Manual.cs +++ b/src/Http/Http/ref/Microsoft.AspNetCore.Http.Manual.cs @@ -3,6 +3,28 @@ namespace Microsoft.AspNetCore.Http { + internal partial class ItemsDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + { + public ItemsDictionary() { } + public ItemsDictionary(System.Collections.Generic.IDictionary items) { } + public System.Collections.Generic.IDictionary Items { get { throw null; } } + int System.Collections.Generic.ICollection>.Count { get { throw null; } } + bool System.Collections.Generic.ICollection>.IsReadOnly { get { throw null; } } + object System.Collections.Generic.IDictionary.this[object key] { get { throw null; } set { } } + System.Collections.Generic.ICollection System.Collections.Generic.IDictionary.Keys { get { throw null; } } + System.Collections.Generic.ICollection System.Collections.Generic.IDictionary.Values { get { throw null; } } + void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair item) { } + void System.Collections.Generic.ICollection>.Clear() { } + bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) { throw null; } + void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) { } + bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) { throw null; } + void System.Collections.Generic.IDictionary.Add(object key, object value) { } + bool System.Collections.Generic.IDictionary.ContainsKey(object key) { throw null; } + bool System.Collections.Generic.IDictionary.Remove(object key) { throw null; } + bool System.Collections.Generic.IDictionary.TryGetValue(object key, out object value) { throw null; } + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } internal partial class RequestCookieCollection : Microsoft.AspNetCore.Http.IRequestCookieCollection, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { public static readonly Microsoft.AspNetCore.Http.RequestCookieCollection Empty; diff --git a/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.Manual.cs b/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.Manual.cs index 67e80c698c..2fede83232 100644 --- a/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.Manual.cs +++ b/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.Manual.cs @@ -36,11 +36,6 @@ namespace Microsoft.AspNetCore.Mvc { internal static void EnsureValid(System.Type conventionType) { } } - internal partial class ApiDescriptionActionData - { - public ApiDescriptionActionData() { } - public string GroupName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } - } internal static partial class MvcCoreDiagnosticListenerExtensions { public static void AfterAction(this System.Diagnostics.DiagnosticListener diagnosticListener, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) { } @@ -640,6 +635,13 @@ namespace Microsoft.AspNetCore.Mvc.Filters [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal readonly partial struct FilterCursorItem { + [System.Diagnostics.DebuggerBrowsableAttribute(System.Diagnostics.DebuggerBrowsableState.Never)] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute] + private readonly TFilter _Filter_k__BackingField; + [System.Diagnostics.DebuggerBrowsableAttribute(System.Diagnostics.DebuggerBrowsableState.Never)] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute] + private readonly TFilterAsync _FilterAsync_k__BackingField; + private readonly int _dummyPrimitive; public FilterCursorItem(TFilter filter, TFilterAsync filterAsync) { throw null; } public TFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } public TFilterAsync FilterAsync { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } @@ -1105,6 +1107,11 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure } namespace Microsoft.AspNetCore.Mvc.ModelBinding { + public partial class CompositeValueProvider : System.Collections.ObjectModel.Collection, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IEnumerableValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IKeyRewriterValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider + { + [System.Diagnostics.DebuggerStepThroughAttribute] + internal static System.Threading.Tasks.ValueTask> TryCreateAsync(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList factories) { throw null; } + } internal partial class ElementalValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider { public ElementalValueProvider(string key, string value, System.Globalization.CultureInfo culture) { } diff --git a/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.Manual.cs b/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.Manual.cs index 4802d223e7..d04a45a77f 100644 --- a/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.Manual.cs +++ b/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.Manual.cs @@ -161,7 +161,6 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Infrastructure } public sealed partial class TagHelperMemoryCacheProvider { - public TagHelperMemoryCacheProvider() { } public Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get { throw null; } internal set { } } } } diff --git a/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.netcoreapp.cs b/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.netcoreapp.cs index af11f8aa37..1e3fb54fd0 100644 --- a/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.netcoreapp.cs +++ b/src/Mvc/Mvc.Razor/ref/Microsoft.AspNetCore.Mvc.Razor.netcoreapp.cs @@ -290,6 +290,13 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Compilation public System.Collections.Generic.IList ViewDescriptors { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } } +namespace Microsoft.AspNetCore.Mvc.Razor.Infrastructure +{ + public sealed partial class TagHelperMemoryCacheProvider + { + public TagHelperMemoryCacheProvider() { } + } +} namespace Microsoft.AspNetCore.Mvc.Razor.Internal { [System.AttributeUsageAttribute(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)] diff --git a/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs b/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs index d98b825fdf..e6e866cc0d 100644 --- a/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs +++ b/src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs @@ -3,14 +3,25 @@ namespace Microsoft.AspNetCore.Components { + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + internal partial struct ComponentParameter + { + private object _dummy; + public string Assembly { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public string TypeName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public static (System.Collections.Generic.IList parameterDefinitions, System.Collections.Generic.IList parameterValues) FromParameterView(Microsoft.AspNetCore.Components.ParameterView parameters) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal partial struct ServerComponent { private object _dummy; private int _dummyPrimitive; - public ServerComponent(int sequence, string assemblyName, string typeName, System.Guid invocationId) { throw null; } + public ServerComponent(int sequence, string assemblyName, string typeName, System.Collections.Generic.IList parametersDefinitions, System.Collections.Generic.IList parameterValues, System.Guid invocationId) { throw null; } public string AssemblyName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public System.Guid InvocationId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public System.Collections.Generic.IList ParameterDefinitions { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + public System.Collections.Generic.IList ParameterValues { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public int Sequence { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } public string TypeName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } } @@ -266,6 +277,12 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures { public static System.Func Process(System.Linq.Expressions.Expression> expression) { throw null; } } + internal partial class ComponentRenderer : Microsoft.AspNetCore.Mvc.ViewFeatures.IComponentRenderer + { + public ComponentRenderer(Microsoft.AspNetCore.Mvc.ViewFeatures.StaticComponentRenderer staticComponentRenderer, Microsoft.AspNetCore.Mvc.ViewFeatures.ServerComponentSerializer serverComponentSerializer) { } + [System.Diagnostics.DebuggerStepThroughAttribute] + public System.Threading.Tasks.Task RenderComponentAsync(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, System.Type componentType, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode, object parameters) { throw null; } + } internal static partial class DefaultDisplayTemplates { public static Microsoft.AspNetCore.Html.IHtmlContent BooleanTemplate(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) { throw null; } @@ -325,6 +342,10 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures void Microsoft.AspNetCore.Components.Routing.IHostEnvironmentNavigationManager.Initialize(string baseUri, string uri) { } protected override void NavigateToCore(string uri, bool forceLoad) { } } + internal partial interface IComponentRenderer + { + System.Threading.Tasks.Task RenderComponentAsync(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, System.Type componentType, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode, object parameters); + } internal partial class LambdaExpressionComparer : System.Collections.Generic.IEqualityComparer { public static readonly Microsoft.AspNetCore.Mvc.ViewFeatures.LambdaExpressionComparer Instance; @@ -482,6 +503,12 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures internal System.Collections.Generic.IEnumerable GetPreamble(Microsoft.AspNetCore.Components.ServerComponentMarker record) { throw null; } public Microsoft.AspNetCore.Components.ServerComponentMarker SerializeInvocation(Microsoft.AspNetCore.Mvc.ViewFeatures.ServerComponentInvocationSequence invocationId, System.Type type, bool prerendered) { throw null; } } + internal partial class StaticComponentRenderer + { + public StaticComponentRenderer(System.Text.Encodings.Web.HtmlEncoder encoder) { } + [System.Diagnostics.DebuggerStepThroughAttribute] + public System.Threading.Tasks.Task> PrerenderComponentAsync(Microsoft.AspNetCore.Components.ParameterView parameters, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Type componentType) { throw null; } + } internal partial class NullView : Microsoft.AspNetCore.Mvc.ViewEngines.IView { public static readonly Microsoft.AspNetCore.Mvc.ViewFeatures.NullView Instance; @@ -531,15 +558,6 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure public override byte[] Serialize(System.Collections.Generic.IDictionary values) { throw null; } } } -namespace Microsoft.AspNetCore.Mvc.ViewFeatures.RazorComponents -{ - internal partial class StaticComponentRenderer - { - public StaticComponentRenderer(System.Text.Encodings.Web.HtmlEncoder encoder) { } - [System.Diagnostics.DebuggerStepThroughAttribute] - public System.Threading.Tasks.Task> PrerenderComponentAsync(Microsoft.AspNetCore.Components.ParameterView parameters, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Type componentType) { throw null; } - } -} namespace Microsoft.AspNetCore.Mvc.Rendering { internal partial class SystemTextJsonHelper : Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper diff --git a/src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs b/src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs index dd69420724..2bc4413c5a 100644 --- a/src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs +++ b/src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs @@ -16,6 +16,11 @@ namespace Microsoft.AspNetCore.HttpSys.Internal internal static System.Version V2; internal const string Zero = "0"; } + internal sealed partial class HeapAllocHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid + { + private HeapAllocHandle() : base (default(bool)) { } + protected override bool ReleaseHandle() { throw null; } + } internal enum HttpSysRequestHeader { CacheControl = 0, @@ -60,6 +65,20 @@ namespace Microsoft.AspNetCore.HttpSys.Internal Translate = 39, UserAgent = 40, } + internal partial class SafeLocalFreeChannelBinding : System.Security.Authentication.ExtendedProtection.ChannelBinding + { + public SafeLocalFreeChannelBinding() { } + public override bool IsInvalid { get { throw null; } } + public override int Size { get { throw null; } } + public static Microsoft.AspNetCore.HttpSys.Internal.SafeLocalFreeChannelBinding LocalAlloc(int cb) { throw null; } + protected override bool ReleaseHandle() { throw null; } + } + internal sealed partial class SafeLocalMemHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid + { + internal SafeLocalMemHandle() : base (default(bool)) { } + internal SafeLocalMemHandle(System.IntPtr existingHandle, bool ownsHandle) : base (default(bool)) { } + protected override bool ReleaseHandle() { throw null; } + } internal partial class SocketAddress { internal const int IPv4AddressSize = 16; @@ -180,6 +199,13 @@ namespace Microsoft.AspNetCore.HttpSys.Internal internal ushort* pAbsPath; internal ushort* pQueryString; } + [System.FlagsAttribute] + internal enum HTTP_CREATE_REQUEST_QUEUE_FLAG : uint + { + None = (uint)0, + OpenExisting = (uint)1, + Controller = (uint)2, + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)] internal partial struct HTTP_DATA_CHUNK { @@ -212,6 +238,7 @@ namespace Microsoft.AspNetCore.HttpSys.Internal HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA = (uint)4, HTTP_SEND_RESPONSE_FLAG_RAW_HEADER = (uint)4, HTTP_SEND_RESPONSE_FLAG_OPAQUE = (uint)64, + HTTP_SEND_RESPONSE_FLAG_GOAWAY = (uint)256, } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] internal partial struct HTTP_KNOWN_HEADER @@ -787,9 +814,129 @@ namespace Microsoft.AspNetCore.HttpSys.Internal public static void ValidateHeaderCharacters(Microsoft.Extensions.Primitives.StringValues headerValues) { } public static void ValidateHeaderCharacters(string headerCharacters) { } } + internal static partial class UnsafeNclNativeMethods + { + [System.Runtime.InteropServices.DllImport("api-ms-win-core-io-l1-1-0.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint CancelIoEx(System.Runtime.InteropServices.SafeHandle handle, Microsoft.AspNetCore.HttpSys.Internal.SafeNativeOverlapped overlapped); + [System.Runtime.InteropServices.DllImport("api-ms-win-core-heap-L1-2-0.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern System.IntPtr GetProcessHeap(); + [System.Runtime.InteropServices.DllImport("api-ms-win-core-heap-L1-2-0.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern bool HeapFree(System.IntPtr hHeap, uint dwFlags, System.IntPtr lpMem); + [System.Runtime.InteropServices.DllImport("api-ms-win-core-kernel32-legacy-l1-1-0.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern bool SetFileCompletionNotificationModes(System.Runtime.InteropServices.SafeHandle handle, Microsoft.AspNetCore.HttpSys.Internal.UnsafeNclNativeMethods.FileCompletionNotificationModes modes); + [System.Runtime.InteropServices.DllImport("tokenbinding.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]public unsafe static extern int TokenBindingVerifyMessage(byte* tokenBindingMessage, uint tokenBindingMessageSize, char* keyType, byte* tlsUnique, uint tlsUniqueSize, out Microsoft.AspNetCore.HttpSys.Internal.HeapAllocHandle resultList); + internal static partial class ErrorCodes + { + internal const uint ERROR_ACCESS_DENIED = (uint)5; + internal const uint ERROR_ALREADY_EXISTS = (uint)183; + internal const uint ERROR_CONNECTION_INVALID = (uint)1229; + internal const uint ERROR_FILE_NOT_FOUND = (uint)2; + internal const uint ERROR_HANDLE_EOF = (uint)38; + internal const uint ERROR_INVALID_NAME = (uint)123; + internal const uint ERROR_INVALID_PARAMETER = (uint)87; + internal const uint ERROR_IO_PENDING = (uint)997; + internal const uint ERROR_MORE_DATA = (uint)234; + internal const uint ERROR_NOT_FOUND = (uint)1168; + internal const uint ERROR_NOT_SUPPORTED = (uint)50; + internal const uint ERROR_OPERATION_ABORTED = (uint)995; + internal const uint ERROR_SHARING_VIOLATION = (uint)32; + internal const uint ERROR_SUCCESS = (uint)0; + } + [System.FlagsAttribute] + internal enum FileCompletionNotificationModes : byte + { + None = (byte)0, + SkipCompletionPortOnSuccess = (byte)1, + SkipSetEventOnHandle = (byte)2, + } + internal static partial class SafeNetHandles + { + [System.Runtime.InteropServices.DllImport("api-ms-win-core-handle-l1-1-0.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern bool CloseHandle(System.IntPtr handle); + [System.Runtime.InteropServices.DllImport("sspicli.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern int FreeContextBuffer(System.IntPtr contextBuffer); + [System.Runtime.InteropServices.DllImport("api-ms-win-core-heap-obsolete-L1-1-0.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern Microsoft.AspNetCore.HttpSys.Internal.SafeLocalFreeChannelBinding LocalAllocChannelBinding(int uFlags, System.UIntPtr sizetdwBytes); + [System.Runtime.InteropServices.DllImport("api-ms-win-core-heap-obsolete-L1-1-0.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern System.IntPtr LocalFree(System.IntPtr handle); + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + internal partial class SECURITY_ATTRIBUTES + { + public bool bInheritHandle; + public Microsoft.AspNetCore.HttpSys.Internal.SafeLocalMemHandle lpSecurityDescriptor; + public int nLength; + public SECURITY_ATTRIBUTES() { } + } + internal static partial class TokenBinding + { + internal enum TOKENBINDING_EXTENSION_FORMAT + { + TOKENBINDING_EXTENSION_FORMAT_UNDEFINED = 0, + } + internal enum TOKENBINDING_HASH_ALGORITHM : byte + { + TOKENBINDING_HASH_ALGORITHM_SHA256 = (byte)4, + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + internal partial struct TOKENBINDING_IDENTIFIER + { + public TOKENBINDING_TYPE bindingType; + public TOKENBINDING_HASH_ALGORITHM hashAlgorithm; + public TOKENBINDING_SIGNATURE_ALGORITHM signatureAlgorithm; + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + internal partial struct TOKENBINDING_RESULT_DATA + { + public uint identifierSize; + public unsafe TOKENBINDING_IDENTIFIER* identifierData; + public TOKENBINDING_EXTENSION_FORMAT extensionFormat; + public uint extensionSize; + public System.IntPtr extensionData; + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + internal partial struct TOKENBINDING_RESULT_LIST + { + public uint resultCount; + public unsafe TOKENBINDING_RESULT_DATA* resultData; + } + internal enum TOKENBINDING_SIGNATURE_ALGORITHM : byte + { + TOKENBINDING_SIGNATURE_ALGORITHM_RSA = (byte)1, + TOKENBINDING_SIGNATURE_ALGORITHM_ECDSAP256 = (byte)3, + } + internal enum TOKENBINDING_TYPE : byte + { + TOKENBINDING_TYPE_PROVIDED = (byte)0, + TOKENBINDING_TYPE_REFERRED = (byte)1, + } + } + } } namespace Microsoft.AspNetCore.Server.HttpSys { + internal static partial class HttpApi + { + internal static Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_API_VERSION ApiVersion { get { throw null; } } + internal static bool Supported { get { throw null; } } + internal static Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTPAPI_VERSION Version { get { throw null; } } + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpAddUrlToUrlGroup(ulong urlGroupId, string pFullyQualifiedUrl, ulong context, uint pReserved); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpCancelHttpRequest(System.Runtime.InteropServices.SafeHandle requestQueueHandle, ulong requestId, System.IntPtr pOverlapped); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpCloseRequestQueue(System.IntPtr pReqQueueHandle); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpCloseServerSession(ulong serverSessionId); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpCloseUrlGroup(ulong urlGroupId); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpCreateRequestQueue(Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTPAPI_VERSION version, string pName, Microsoft.AspNetCore.HttpSys.Internal.UnsafeNclNativeMethods.SECURITY_ATTRIBUTES pSecurityAttributes, Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_CREATE_REQUEST_QUEUE_FLAG flags, out Microsoft.AspNetCore.Server.HttpSys.HttpRequestQueueV2Handle pReqQueueHandle); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal unsafe static extern uint HttpCreateServerSession(Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTPAPI_VERSION version, ulong* serverSessionId, uint reserved); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal unsafe static extern uint HttpCreateUrlGroup(ulong serverSessionId, ulong* urlGroupId, uint reserved); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal unsafe static extern uint HttpInitialize(Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTPAPI_VERSION version, uint flags, void* pReserved); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal unsafe static extern uint HttpReceiveClientCertificate(System.Runtime.InteropServices.SafeHandle requestQueueHandle, ulong connectionId, uint flags, Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_SSL_CLIENT_CERT_INFO* pSslClientCertInfo, uint sslClientCertInfoSize, uint* pBytesReceived, Microsoft.AspNetCore.HttpSys.Internal.SafeNativeOverlapped pOverlapped); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal unsafe static extern uint HttpReceiveClientCertificate(System.Runtime.InteropServices.SafeHandle requestQueueHandle, ulong connectionId, uint flags, byte* pSslClientCertInfo, uint sslClientCertInfoSize, uint* pBytesReceived, Microsoft.AspNetCore.HttpSys.Internal.SafeNativeOverlapped pOverlapped); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal unsafe static extern uint HttpReceiveHttpRequest(System.Runtime.InteropServices.SafeHandle requestQueueHandle, ulong requestId, uint flags, Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_REQUEST* pRequestBuffer, uint requestBufferLength, uint* pBytesReturned, Microsoft.AspNetCore.HttpSys.Internal.SafeNativeOverlapped pOverlapped); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpReceiveRequestEntityBody(System.Runtime.InteropServices.SafeHandle requestQueueHandle, ulong requestId, uint flags, System.IntPtr pEntityBuffer, uint entityBufferLength, out uint bytesReturned, Microsoft.AspNetCore.HttpSys.Internal.SafeNativeOverlapped pOverlapped); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpRemoveUrlFromUrlGroup(ulong urlGroupId, string pFullyQualifiedUrl, uint flags); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal unsafe static extern uint HttpSendHttpResponse(System.Runtime.InteropServices.SafeHandle requestQueueHandle, ulong requestId, uint flags, Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_RESPONSE_V2* pHttpResponse, Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_CACHE_POLICY* pCachePolicy, uint* pBytesSent, System.IntPtr pReserved1, uint Reserved2, Microsoft.AspNetCore.HttpSys.Internal.SafeNativeOverlapped pOverlapped, System.IntPtr pLogData); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal unsafe static extern uint HttpSendResponseEntityBody(System.Runtime.InteropServices.SafeHandle requestQueueHandle, ulong requestId, uint flags, ushort entityChunkCount, Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_DATA_CHUNK* pEntityChunks, uint* pBytesSent, System.IntPtr pReserved1, uint Reserved2, Microsoft.AspNetCore.HttpSys.Internal.SafeNativeOverlapped pOverlapped, System.IntPtr pLogData); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpSetRequestQueueProperty(System.Runtime.InteropServices.SafeHandle requestQueueHandle, Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_SERVER_PROPERTY serverProperty, System.IntPtr pPropertyInfo, uint propertyInfoLength, uint reserved, System.IntPtr pReserved); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpSetUrlGroupProperty(ulong urlGroupId, Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_SERVER_PROPERTY serverProperty, System.IntPtr pPropertyInfo, uint propertyInfoLength); + [System.Runtime.InteropServices.DllImport("httpapi.dll")][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.PreserveSig)]internal static extern uint HttpWaitForDisconnectEx(System.Runtime.InteropServices.SafeHandle requestQueueHandle, ulong connectionId, uint reserved, Microsoft.AspNetCore.HttpSys.Internal.SafeNativeOverlapped overlapped); + } + internal sealed partial class HttpRequestQueueV2Handle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid + { + private HttpRequestQueueV2Handle() : base (default(bool)) { } + protected override bool ReleaseHandle() { throw null; } + } internal partial class ResponseBody : System.IO.Stream { internal ResponseBody(Microsoft.AspNetCore.Server.HttpSys.RequestContext requestContext) { }