Skip to content

Commit 5e3ae0a

Browse files
committed
C#: Update .NET and ASP.NET stubs.
1 parent 839ef7f commit 5e3ae0a

19 files changed

+157
-157
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ChunkingCookieManager : Microsoft.AspNetCore.Authentication.Cookies
1313
public void AppendResponseCookie(Microsoft.AspNetCore.Http.HttpContext context, string key, string value, Microsoft.AspNetCore.Http.CookieOptions options) => throw null;
1414
public int? ChunkSize { get => throw null; set { } }
1515
public ChunkingCookieManager() => throw null;
16-
public const int DefaultChunkSize = default;
16+
public const int DefaultChunkSize = 4050;
1717
public void DeleteCookie(Microsoft.AspNetCore.Http.HttpContext context, string key, Microsoft.AspNetCore.Http.CookieOptions options) => throw null;
1818
public string GetRequestCookie(Microsoft.AspNetCore.Http.HttpContext context, string key) => throw null;
1919
public bool ThrowForPartialCookies { get => throw null; set { } }

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

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -581,71 +581,71 @@ public static partial class ResponseTrailerExtensions
581581
}
582582
public static class StatusCodes
583583
{
584-
public const int Status100Continue = default;
585-
public const int Status101SwitchingProtocols = default;
586-
public const int Status102Processing = default;
587-
public const int Status200OK = default;
588-
public const int Status201Created = default;
589-
public const int Status202Accepted = default;
590-
public const int Status203NonAuthoritative = default;
591-
public const int Status204NoContent = default;
592-
public const int Status205ResetContent = default;
593-
public const int Status206PartialContent = default;
594-
public const int Status207MultiStatus = default;
595-
public const int Status208AlreadyReported = default;
596-
public const int Status226IMUsed = default;
597-
public const int Status300MultipleChoices = default;
598-
public const int Status301MovedPermanently = default;
599-
public const int Status302Found = default;
600-
public const int Status303SeeOther = default;
601-
public const int Status304NotModified = default;
602-
public const int Status305UseProxy = default;
603-
public const int Status306SwitchProxy = default;
604-
public const int Status307TemporaryRedirect = default;
605-
public const int Status308PermanentRedirect = default;
606-
public const int Status400BadRequest = default;
607-
public const int Status401Unauthorized = default;
608-
public const int Status402PaymentRequired = default;
609-
public const int Status403Forbidden = default;
610-
public const int Status404NotFound = default;
611-
public const int Status405MethodNotAllowed = default;
612-
public const int Status406NotAcceptable = default;
613-
public const int Status407ProxyAuthenticationRequired = default;
614-
public const int Status408RequestTimeout = default;
615-
public const int Status409Conflict = default;
616-
public const int Status410Gone = default;
617-
public const int Status411LengthRequired = default;
618-
public const int Status412PreconditionFailed = default;
619-
public const int Status413PayloadTooLarge = default;
620-
public const int Status413RequestEntityTooLarge = default;
621-
public const int Status414RequestUriTooLong = default;
622-
public const int Status414UriTooLong = default;
623-
public const int Status415UnsupportedMediaType = default;
624-
public const int Status416RangeNotSatisfiable = default;
625-
public const int Status416RequestedRangeNotSatisfiable = default;
626-
public const int Status417ExpectationFailed = default;
627-
public const int Status418ImATeapot = default;
628-
public const int Status419AuthenticationTimeout = default;
629-
public const int Status421MisdirectedRequest = default;
630-
public const int Status422UnprocessableEntity = default;
631-
public const int Status423Locked = default;
632-
public const int Status424FailedDependency = default;
633-
public const int Status426UpgradeRequired = default;
634-
public const int Status428PreconditionRequired = default;
635-
public const int Status429TooManyRequests = default;
636-
public const int Status431RequestHeaderFieldsTooLarge = default;
637-
public const int Status451UnavailableForLegalReasons = default;
638-
public const int Status500InternalServerError = default;
639-
public const int Status501NotImplemented = default;
640-
public const int Status502BadGateway = default;
641-
public const int Status503ServiceUnavailable = default;
642-
public const int Status504GatewayTimeout = default;
643-
public const int Status505HttpVersionNotsupported = default;
644-
public const int Status506VariantAlsoNegotiates = default;
645-
public const int Status507InsufficientStorage = default;
646-
public const int Status508LoopDetected = default;
647-
public const int Status510NotExtended = default;
648-
public const int Status511NetworkAuthenticationRequired = default;
584+
public const int Status100Continue = 100;
585+
public const int Status101SwitchingProtocols = 101;
586+
public const int Status102Processing = 102;
587+
public const int Status200OK = 200;
588+
public const int Status201Created = 201;
589+
public const int Status202Accepted = 202;
590+
public const int Status203NonAuthoritative = 203;
591+
public const int Status204NoContent = 204;
592+
public const int Status205ResetContent = 205;
593+
public const int Status206PartialContent = 206;
594+
public const int Status207MultiStatus = 207;
595+
public const int Status208AlreadyReported = 208;
596+
public const int Status226IMUsed = 226;
597+
public const int Status300MultipleChoices = 300;
598+
public const int Status301MovedPermanently = 301;
599+
public const int Status302Found = 302;
600+
public const int Status303SeeOther = 303;
601+
public const int Status304NotModified = 304;
602+
public const int Status305UseProxy = 305;
603+
public const int Status306SwitchProxy = 306;
604+
public const int Status307TemporaryRedirect = 307;
605+
public const int Status308PermanentRedirect = 308;
606+
public const int Status400BadRequest = 400;
607+
public const int Status401Unauthorized = 401;
608+
public const int Status402PaymentRequired = 402;
609+
public const int Status403Forbidden = 403;
610+
public const int Status404NotFound = 404;
611+
public const int Status405MethodNotAllowed = 405;
612+
public const int Status406NotAcceptable = 406;
613+
public const int Status407ProxyAuthenticationRequired = 407;
614+
public const int Status408RequestTimeout = 408;
615+
public const int Status409Conflict = 409;
616+
public const int Status410Gone = 410;
617+
public const int Status411LengthRequired = 411;
618+
public const int Status412PreconditionFailed = 412;
619+
public const int Status413PayloadTooLarge = 413;
620+
public const int Status413RequestEntityTooLarge = 413;
621+
public const int Status414RequestUriTooLong = 414;
622+
public const int Status414UriTooLong = 414;
623+
public const int Status415UnsupportedMediaType = 415;
624+
public const int Status416RangeNotSatisfiable = 416;
625+
public const int Status416RequestedRangeNotSatisfiable = 416;
626+
public const int Status417ExpectationFailed = 417;
627+
public const int Status418ImATeapot = 418;
628+
public const int Status419AuthenticationTimeout = 419;
629+
public const int Status421MisdirectedRequest = 421;
630+
public const int Status422UnprocessableEntity = 422;
631+
public const int Status423Locked = 423;
632+
public const int Status424FailedDependency = 424;
633+
public const int Status426UpgradeRequired = 426;
634+
public const int Status428PreconditionRequired = 428;
635+
public const int Status429TooManyRequests = 429;
636+
public const int Status431RequestHeaderFieldsTooLarge = 431;
637+
public const int Status451UnavailableForLegalReasons = 451;
638+
public const int Status500InternalServerError = 500;
639+
public const int Status501NotImplemented = 501;
640+
public const int Status502BadGateway = 502;
641+
public const int Status503ServiceUnavailable = 503;
642+
public const int Status504GatewayTimeout = 504;
643+
public const int Status505HttpVersionNotsupported = 505;
644+
public const int Status506VariantAlsoNegotiates = 506;
645+
public const int Status507InsufficientStorage = 507;
646+
public const int Status508LoopDetected = 508;
647+
public const int Status510NotExtended = 510;
648+
public const int Status511NetworkAuthenticationRequired = 511;
649649
}
650650
public abstract class WebSocketManager
651651
{

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ public class FormOptions
8787
public bool BufferBody { get => throw null; set { } }
8888
public long BufferBodyLengthLimit { get => throw null; set { } }
8989
public FormOptions() => throw null;
90-
public const int DefaultBufferBodyLengthLimit = default;
91-
public const int DefaultMemoryBufferThreshold = default;
92-
public const long DefaultMultipartBodyLengthLimit = default;
93-
public const int DefaultMultipartBoundaryLengthLimit = default;
90+
public const int DefaultBufferBodyLengthLimit = 134217728;
91+
public const int DefaultMemoryBufferThreshold = 65536;
92+
public const long DefaultMultipartBodyLengthLimit = 134217728;
93+
public const int DefaultMultipartBoundaryLengthLimit = 128;
9494
public int KeyLengthLimit { get => throw null; set { } }
9595
public int MemoryBufferThreshold { get => throw null; set { } }
9696
public long MultipartBodyLengthLimit { get => throw null; set { } }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ public class FileContentResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure
16171617
}
16181618
public class FileResultExecutorBase
16191619
{
1620-
protected const int BufferSize = default;
1620+
protected const int BufferSize = 65536;
16211621
protected static Microsoft.Extensions.Logging.ILogger CreateLogger<T>(Microsoft.Extensions.Logging.ILoggerFactory factory) => throw null;
16221622
public FileResultExecutorBase(Microsoft.Extensions.Logging.ILogger logger) => throw null;
16231623
protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; }

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ public abstract class HubMethodInvocationMessage : Microsoft.AspNetCore.SignalR.
8989
}
9090
public static class HubProtocolConstants
9191
{
92-
public const int CancelInvocationMessageType = default;
93-
public const int CloseMessageType = default;
94-
public const int CompletionMessageType = default;
95-
public const int InvocationMessageType = default;
96-
public const int PingMessageType = default;
97-
public const int StreamInvocationMessageType = default;
98-
public const int StreamItemMessageType = default;
92+
public const int CancelInvocationMessageType = 5;
93+
public const int CloseMessageType = 7;
94+
public const int CompletionMessageType = 3;
95+
public const int InvocationMessageType = 1;
96+
public const int PingMessageType = 6;
97+
public const int StreamInvocationMessageType = 4;
98+
public const int StreamItemMessageType = 2;
9999
}
100100
public static partial class HubProtocolExtensions
101101
{

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ public class FormReader : System.IDisposable
127127
public FormReader(System.IO.Stream stream) => throw null;
128128
public FormReader(System.IO.Stream stream, System.Text.Encoding encoding) => throw null;
129129
public FormReader(System.IO.Stream stream, System.Text.Encoding encoding, System.Buffers.ArrayPool<char> charPool) => throw null;
130-
public const int DefaultKeyLengthLimit = default;
131-
public const int DefaultValueCountLimit = default;
132-
public const int DefaultValueLengthLimit = default;
130+
public const int DefaultKeyLengthLimit = 2048;
131+
public const int DefaultValueCountLimit = 1024;
132+
public const int DefaultValueLengthLimit = 4194304;
133133
public void Dispose() => throw null;
134134
public int KeyLengthLimit { get => throw null; set { } }
135135
public System.Collections.Generic.Dictionary<string, Microsoft.Extensions.Primitives.StringValues> ReadForm() => throw null;
@@ -192,8 +192,8 @@ public class MultipartReader
192192
public long? BodyLengthLimit { get => throw null; set { } }
193193
public MultipartReader(string boundary, System.IO.Stream stream) => throw null;
194194
public MultipartReader(string boundary, System.IO.Stream stream, int bufferSize) => throw null;
195-
public const int DefaultHeadersCountLimit = default;
196-
public const int DefaultHeadersLengthLimit = default;
195+
public const int DefaultHeadersCountLimit = 16;
196+
public const int DefaultHeadersLengthLimit = 16384;
197197
public int HeadersCountLimit { get => throw null; set { } }
198198
public int HeadersLengthLimit { get => throw null; set { } }
199199
public System.Threading.Tasks.Task<Microsoft.AspNetCore.WebUtilities.MultipartSection> ReadNextSectionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;

csharp/ql/test/resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.VisualBasic.Core.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public sealed class Constants
429429
public const string vbNullChar = default;
430430
public const string vbNullString = default;
431431
public const Microsoft.VisualBasic.VariantType vbObject = default;
432-
public const int vbObjectError = default;
432+
public const int vbObjectError = -2147221504;
433433
public const Microsoft.VisualBasic.MsgBoxResult vbOK = default;
434434
public const Microsoft.VisualBasic.MsgBoxStyle vbOKCancel = default;
435435
public const Microsoft.VisualBasic.MsgBoxStyle vbOKOnly = default;

csharp/ql/test/resources/stubs/_frameworks/Microsoft.NETCore.App/System.Diagnostics.StackTrace.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class StackFrame
1818
public virtual int GetILOffset() => throw null;
1919
public virtual System.Reflection.MethodBase GetMethod() => throw null;
2020
public virtual int GetNativeOffset() => throw null;
21-
public const int OFFSET_UNKNOWN = default;
21+
public const int OFFSET_UNKNOWN = -1;
2222
public override string ToString() => throw null;
2323
}
2424
public static partial class StackFrameExtensions
@@ -44,7 +44,7 @@ public class StackTrace
4444
public virtual int FrameCount { get => throw null; }
4545
public virtual System.Diagnostics.StackFrame GetFrame(int index) => throw null;
4646
public virtual System.Diagnostics.StackFrame[] GetFrames() => throw null;
47-
public const int METHODS_TO_SKIP = default;
47+
public const int METHODS_TO_SKIP = 0;
4848
public override string ToString() => throw null;
4949
}
5050
namespace SymbolStore

csharp/ql/test/resources/stubs/_frameworks/Microsoft.NETCore.App/System.IO.Pipes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public sealed class NamedPipeServerStream : System.IO.Pipes.PipeStream
7777
public void Disconnect() => throw null;
7878
public void EndWaitForConnection(System.IAsyncResult asyncResult) => throw null;
7979
public string GetImpersonationUserName() => throw null;
80-
public const int MaxAllowedServerInstances = default;
80+
public const int MaxAllowedServerInstances = -1;
8181
public void RunAsClient(System.IO.Pipes.PipeStreamImpersonationWorker impersonationWorker) => throw null;
8282
public void WaitForConnection() => throw null;
8383
public System.Threading.Tasks.Task WaitForConnectionAsync() => throw null;

csharp/ql/test/resources/stubs/_frameworks/Microsoft.NETCore.App/System.Memory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ public struct StandardFormat : System.IEquatable<System.Buffers.StandardFormat>
225225
public override int GetHashCode() => throw null;
226226
public bool HasPrecision { get => throw null; }
227227
public bool IsDefault { get => throw null; }
228-
public const byte MaxPrecision = default;
229-
public const byte NoPrecision = default;
228+
public const byte MaxPrecision = 99;
229+
public const byte NoPrecision = 255;
230230
public static bool operator ==(System.Buffers.StandardFormat left, System.Buffers.StandardFormat right) => throw null;
231231
public static implicit operator System.Buffers.StandardFormat(char symbol) => throw null;
232232
public static bool operator !=(System.Buffers.StandardFormat left, System.Buffers.StandardFormat right) => throw null;

0 commit comments

Comments
 (0)