Skip to content

Commit e2882f0

Browse files
committed
C#: Re-generate stubs for the ASP.NET Core framework.
1 parent 7c7c335 commit e2882f0

File tree

35 files changed

+416
-416
lines changed

35 files changed

+416
-416
lines changed

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Web.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ public class InputDate<TValue> : Microsoft.AspNetCore.Components.Forms.InputBase
128128
}
129129

130130
// Generated from `Microsoft.AspNetCore.Components.Forms.InputDateType` in `Microsoft.AspNetCore.Components.Web, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
131-
public enum InputDateType
131+
public enum InputDateType : int
132132
{
133-
Date,
134-
DateTimeLocal,
135-
Month,
136-
Time,
133+
Date = 0,
134+
DateTimeLocal = 1,
135+
Month = 2,
136+
Time = 3,
137137
}
138138

139139
// Generated from `Microsoft.AspNetCore.Components.Forms.InputFile` in `Microsoft.AspNetCore.Components.Web, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
@@ -304,10 +304,10 @@ public class NavLink : Microsoft.AspNetCore.Components.ComponentBase, System.IDi
304304
}
305305

306306
// Generated from `Microsoft.AspNetCore.Components.Routing.NavLinkMatch` in `Microsoft.AspNetCore.Components.Web, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
307-
public enum NavLinkMatch
307+
public enum NavLinkMatch : int
308308
{
309-
All,
310-
Prefix,
309+
All = 1,
310+
Prefix = 0,
311311
}
312312

313313
}

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -668,18 +668,18 @@ public struct RenderTreeEdit
668668
}
669669

670670
// Generated from `Microsoft.AspNetCore.Components.RenderTree.RenderTreeEditType` in `Microsoft.AspNetCore.Components, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
671-
public enum RenderTreeEditType
671+
public enum RenderTreeEditType : int
672672
{
673-
PermutationListEnd,
674-
PermutationListEntry,
675-
PrependFrame,
676-
RemoveAttribute,
677-
RemoveFrame,
678-
SetAttribute,
679-
StepIn,
680-
StepOut,
681-
UpdateMarkup,
682-
UpdateText,
673+
PermutationListEnd = 10,
674+
PermutationListEntry = 9,
675+
PrependFrame = 1,
676+
RemoveAttribute = 4,
677+
RemoveFrame = 2,
678+
SetAttribute = 3,
679+
StepIn = 6,
680+
StepOut = 7,
681+
UpdateMarkup = 8,
682+
UpdateText = 5,
683683
}
684684

685685
// Generated from `Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame` in `Microsoft.AspNetCore.Components, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
@@ -711,17 +711,17 @@ public struct RenderTreeFrame
711711
}
712712

713713
// Generated from `Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrameType` in `Microsoft.AspNetCore.Components, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
714-
public enum RenderTreeFrameType
714+
public enum RenderTreeFrameType : short
715715
{
716-
Attribute,
717-
Component,
718-
ComponentReferenceCapture,
719-
Element,
720-
ElementReferenceCapture,
721-
Markup,
722-
None,
723-
Region,
724-
Text,
716+
Attribute = 3,
717+
Component = 4,
718+
ComponentReferenceCapture = 7,
719+
Element = 1,
720+
ElementReferenceCapture = 6,
721+
Markup = 8,
722+
None = 0,
723+
Region = 5,
724+
Text = 2,
725725
}
726726

727727
// Generated from `Microsoft.AspNetCore.Components.RenderTree.Renderer` in `Microsoft.AspNetCore.Components, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Connections.Abstractions.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ public class FileHandleEndPoint : System.Net.EndPoint
131131
}
132132

133133
// Generated from `Microsoft.AspNetCore.Connections.FileHandleType` in `Microsoft.AspNetCore.Connections.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
134-
public enum FileHandleType
134+
public enum FileHandleType : int
135135
{
136-
Auto,
137-
Pipe,
138-
Tcp,
136+
Auto = 0,
137+
Pipe = 2,
138+
Tcp = 1,
139139
}
140140

141141
// Generated from `Microsoft.AspNetCore.Connections.IConnectionBuilder` in `Microsoft.AspNetCore.Connections.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
@@ -216,10 +216,10 @@ public abstract class MultiplexedConnectionContext : Microsoft.AspNetCore.Connec
216216

217217
// Generated from `Microsoft.AspNetCore.Connections.TransferFormat` in `Microsoft.AspNetCore.Connections.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
218218
[System.Flags]
219-
public enum TransferFormat
219+
public enum TransferFormat : int
220220
{
221-
Binary,
222-
Text,
221+
Binary = 1,
222+
Text = 2,
223223
}
224224

225225
// Generated from `Microsoft.AspNetCore.Connections.UriEndPoint` in `Microsoft.AspNetCore.Connections.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.CookiePolicy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public class DeleteCookieContext
6464
}
6565

6666
// Generated from `Microsoft.AspNetCore.CookiePolicy.HttpOnlyPolicy` in `Microsoft.AspNetCore.CookiePolicy, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
67-
public enum HttpOnlyPolicy
67+
public enum HttpOnlyPolicy : int
6868
{
69-
None,
70-
Always,
69+
Always = 1,
70+
None = 0,
7171
}
7272

7373
}

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cryptography.KeyDerivation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ public static class KeyDerivation
1515
}
1616

1717
// Generated from `Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf` in `Microsoft.AspNetCore.Cryptography.KeyDerivation, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
18-
public enum KeyDerivationPrf
18+
public enum KeyDerivationPrf : int
1919
{
20-
HMACSHA1,
21-
HMACSHA256,
22-
HMACSHA512,
20+
HMACSHA1 = 0,
21+
HMACSHA256 = 1,
22+
HMACSHA512 = 2,
2323
}
2424

2525
}

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ public class CngGcmAuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProt
110110
}
111111

112112
// Generated from `Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.EncryptionAlgorithm` in `Microsoft.AspNetCore.DataProtection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
113-
public enum EncryptionAlgorithm
113+
public enum EncryptionAlgorithm : int
114114
{
115-
AES_128_CBC,
116-
AES_128_GCM,
117-
AES_192_CBC,
118-
AES_192_GCM,
119-
AES_256_CBC,
120-
AES_256_GCM,
115+
AES_128_CBC = 0,
116+
AES_128_GCM = 3,
117+
AES_192_CBC = 1,
118+
AES_192_GCM = 4,
119+
AES_256_CBC = 2,
120+
AES_256_GCM = 5,
121121
}
122122

123123
// Generated from `Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor` in `Microsoft.AspNetCore.DataProtection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
@@ -141,10 +141,10 @@ public class ManagedAuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataPro
141141
}
142142

143143
// Generated from `Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ValidationAlgorithm` in `Microsoft.AspNetCore.DataProtection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
144-
public enum ValidationAlgorithm
144+
public enum ValidationAlgorithm : int
145145
{
146-
HMACSHA256,
147-
HMACSHA512,
146+
HMACSHA256 = 0,
147+
HMACSHA512 = 1,
148148
}
149149

150150
namespace ConfigurationModel
@@ -454,11 +454,11 @@ public class CertificateXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEn
454454

455455
// Generated from `Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags` in `Microsoft.AspNetCore.DataProtection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
456456
[System.Flags]
457-
public enum DpapiNGProtectionDescriptorFlags
457+
public enum DpapiNGProtectionDescriptorFlags : int
458458
{
459-
MachineKey,
460-
NamedDescriptor,
461-
None,
459+
MachineKey = 32,
460+
NamedDescriptor = 1,
461+
None = 0,
462462
}
463463

464464
// Generated from `Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGXmlDecryptor` in `Microsoft.AspNetCore.DataProtection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Abstractions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ public class CookieBuilder
176176
}
177177

178178
// Generated from `Microsoft.AspNetCore.Http.CookieSecurePolicy` in `Microsoft.AspNetCore.Http.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
179-
public enum CookieSecurePolicy
179+
public enum CookieSecurePolicy : int
180180
{
181-
SameAsRequest,
182-
Always,
183-
None
181+
Always = 1,
182+
None = 2,
183+
SameAsRequest = 0,
184184
}
185185

186186
// Generated from `Microsoft.AspNetCore.Http.Endpoint` in `Microsoft.AspNetCore.Http.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.Common.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ public class AvailableTransport
1818

1919
// Generated from `Microsoft.AspNetCore.Http.Connections.HttpTransportType` in `Microsoft.AspNetCore.Http.Connections.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
2020
[System.Flags]
21-
public enum HttpTransportType
21+
public enum HttpTransportType : int
2222
{
23-
LongPolling,
24-
None,
25-
ServerSentEvents,
26-
WebSockets,
23+
LongPolling = 4,
24+
None = 0,
25+
ServerSentEvents = 2,
26+
WebSockets = 1,
2727
}
2828

2929
// Generated from `Microsoft.AspNetCore.Http.Connections.HttpTransports` in `Microsoft.AspNetCore.Http.Connections.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Features.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ public interface ISession
194194
}
195195

196196
// Generated from `Microsoft.AspNetCore.Http.SameSiteMode` in `Microsoft.AspNetCore.Http.Features, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
197-
public enum SameSiteMode
197+
public enum SameSiteMode : int
198198
{
199-
Lax,
200-
None,
201-
Strict,
202-
Unspecified,
199+
Lax = 1,
200+
None = 0,
201+
Strict = 2,
202+
Unspecified = -1,
203203
}
204204

205205
// Generated from `Microsoft.AspNetCore.Http.WebSocketAcceptContext` in `Microsoft.AspNetCore.Http.Features, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
@@ -216,11 +216,11 @@ public class WebSocketAcceptContext
216216
namespace Features
217217
{
218218
// Generated from `Microsoft.AspNetCore.Http.Features.HttpsCompressionMode` in `Microsoft.AspNetCore.Http.Features, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
219-
public enum HttpsCompressionMode
219+
public enum HttpsCompressionMode : int
220220
{
221-
Compress,
222-
Default,
223-
DoNotCompress,
221+
Compress = 2,
222+
Default = 0,
223+
DoNotCompress = 1,
224224
}
225225

226226
// Generated from `Microsoft.AspNetCore.Http.Features.IBadRequestExceptionFeature` in `Microsoft.AspNetCore.Http.Features, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpLogging.cs

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ namespace HttpLogging
1818
{
1919
// Generated from `Microsoft.AspNetCore.HttpLogging.HttpLoggingFields` in `Microsoft.AspNetCore.HttpLogging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
2020
[System.Flags]
21-
public enum HttpLoggingFields
21+
public enum HttpLoggingFields : long
2222
{
23-
All,
24-
None,
25-
Request,
26-
RequestBody,
27-
RequestHeaders,
28-
RequestMethod,
29-
RequestPath,
30-
RequestProperties,
31-
RequestPropertiesAndHeaders,
32-
RequestProtocol,
33-
RequestQuery,
34-
RequestScheme,
35-
RequestTrailers,
36-
Response,
37-
ResponseBody,
38-
ResponseHeaders,
39-
ResponsePropertiesAndHeaders,
40-
ResponseStatusCode,
41-
ResponseTrailers,
23+
All = 3325,
24+
None = 0,
25+
Request = 1117,
26+
RequestBody = 1024,
27+
RequestHeaders = 64,
28+
RequestMethod = 8,
29+
RequestPath = 1,
30+
RequestProperties = 29,
31+
RequestPropertiesAndHeaders = 93,
32+
RequestProtocol = 4,
33+
RequestQuery = 2,
34+
RequestScheme = 16,
35+
RequestTrailers = 256,
36+
Response = 2208,
37+
ResponseBody = 2048,
38+
ResponseHeaders = 128,
39+
ResponsePropertiesAndHeaders = 160,
40+
ResponseStatusCode = 32,
41+
ResponseTrailers = 512,
4242
}
4343

4444
// Generated from `Microsoft.AspNetCore.HttpLogging.HttpLoggingOptions` in `Microsoft.AspNetCore.HttpLogging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
@@ -77,30 +77,30 @@ public class W3CLoggerOptions
7777

7878
// Generated from `Microsoft.AspNetCore.HttpLogging.W3CLoggingFields` in `Microsoft.AspNetCore.HttpLogging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
7979
[System.Flags]
80-
public enum W3CLoggingFields
80+
public enum W3CLoggingFields : long
8181
{
82-
All,
83-
ClientIpAddress,
84-
ConnectionInfoFields,
85-
Cookie,
86-
Date,
87-
Host,
88-
Method,
89-
None,
90-
ProtocolStatus,
91-
ProtocolVersion,
92-
Referer,
93-
Request,
94-
RequestHeaders,
95-
ServerIpAddress,
96-
ServerName,
97-
ServerPort,
98-
Time,
99-
TimeTaken,
100-
UriQuery,
101-
UriStem,
102-
UserAgent,
103-
UserName,
82+
All = 131071,
83+
ClientIpAddress = 4,
84+
ConnectionInfoFields = 100,
85+
Cookie = 32768,
86+
Date = 1,
87+
Host = 8192,
88+
Method = 128,
89+
None = 0,
90+
ProtocolStatus = 1024,
91+
ProtocolVersion = 4096,
92+
Referer = 65536,
93+
Request = 95104,
94+
RequestHeaders = 90112,
95+
ServerIpAddress = 32,
96+
ServerName = 16,
97+
ServerPort = 64,
98+
Time = 2,
99+
TimeTaken = 2048,
100+
UriQuery = 512,
101+
UriStem = 256,
102+
UserAgent = 16384,
103+
UserName = 8,
104104
}
105105

106106
}

0 commit comments

Comments
 (0)