ApiDiff between netcoreapp3.1 and netcore5.0-preview2 (#4506)

* apidfif

* another change

* remove core

* removing security principal and json node

* removing redundant changes
This commit is contained in:
Anirudh Agnihotry 2020-04-06 10:24:51 -07:00 committed by GitHub
parent 734ce94ff4
commit 46601fdce2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 1291 additions and 0 deletions

View file

@ -0,0 +1,39 @@
# API Difference netcoreapp3.1 vs netcore5.0-preview2
API listing follows standard diff formatting. Lines preceded by a '+' are
additions and a '-' indicates removal.
* [Microsoft.VisualBasic](5.0-preview2_Microsoft.VisualBasic.md)
* [Microsoft.VisualBasic.CompilerServices](5.0-preview2_Microsoft.VisualBasic.CompilerServices.md)
* [Microsoft.Win32.SafeHandles](5.0-preview2_Microsoft.Win32.SafeHandles.md)
* [System](5.0-preview2_System.md)
* [System.Buffers](5.0-preview2_System.Buffers.md)
* [System.Buffers.Binary](5.0-preview2_System.Buffers.Binary.md)
* [System.Collections.Concurrent](5.0-preview2_System.Collections.Concurrent.md)
* [System.Collections.Generic](5.0-preview2_System.Collections.Generic.md)
* [System.Collections.Immutable](5.0-preview2_System.Collections.Immutable.md)
* [System.Data.Common](5.0-preview2_System.Data.Common.md)
* [System.Globalization](5.0-preview2_System.Globalization.md)
* [System.IO](5.0-preview2_System.IO.md)
* [System.IO.Pipes](5.0-preview2_System.IO.Pipes.md)
* [System.Linq](5.0-preview2_System.Linq.md)
* [System.Net](5.0-preview2_System.Net.md)
* [System.Net.Http](5.0-preview2_System.Net.Http.md)
* [System.Net.Mail](5.0-preview2_System.Net.Mail.md)
* [System.Net.NetworkInformation](5.0-preview2_System.Net.NetworkInformation.md)
* [System.Net.Security](5.0-preview2_System.Net.Security.md)
* [System.Net.Sockets](5.0-preview2_System.Net.Sockets.md)
* [System.Runtime.CompilerServices](5.0-preview2_System.Runtime.CompilerServices.md)
* [System.Runtime.ExceptionServices](5.0-preview2_System.Runtime.ExceptionServices.md)
* [System.Runtime.InteropServices](5.0-preview2_System.Runtime.InteropServices.md)
* [System.Runtime.Intrinsics](5.0-preview2_System.Runtime.Intrinsics.md)
* [System.Security.Cryptography](5.0-preview2_System.Security.Cryptography.md)
* [System.Security.Cryptography.X509Certificates](5.0-preview2_System.Security.Cryptography.X509Certificates.md)
* [System.Text](5.0-preview2_System.Text.md)
* [System.Text.Json](5.0-preview2_System.Text.Json.md)
* [System.Text.Json.Serialization](5.0-preview2_System.Text.Json.Serialization.md)
* [System.Text.RegularExpressions](5.0-preview2_System.Text.RegularExpressions.md)
* [System.Threading](5.0-preview2_System.Threading.md)
* [System.Threading.Channels](5.0-preview2_System.Threading.Channels.md)
* [System.Threading.Tasks](5.0-preview2_System.Threading.Tasks.md)

View file

@ -0,0 +1,10 @@
# Microsoft.VisualBasic.CompilerServices
``` diff
namespace Microsoft.VisualBasic.CompilerServices {
public sealed class Utils {
+ public static string GetResourceString(string ResourceKey, params string[] Args);
}
}
```

View file

@ -0,0 +1,33 @@
# Microsoft.VisualBasic
``` diff
namespace Microsoft.VisualBasic {
public sealed class ErrObject {
+ public int HelpContext { get; set; }
+ public string HelpFile { get; set; }
+ public string Source { get; set; }
}
public sealed class Information {
+ public static int Erl();
}
public sealed class Interaction {
+ public static void AppActivate(int ProcessId);
+ public static void AppActivate(string Title);
+ public static object Choose(double Index, params object[] Choice);
+ public static string Command();
+ public static void DeleteSetting(string AppName, string Section = null, string Key = null);
+ public static string Environ(int Expression);
+ public static string Environ(string Expression);
+ public static string[,] GetAllSettings(string AppName, string Section);
+ public static object GetObject(string PathName = null, string Class = null);
+ public static string GetSetting(string AppName, string Section, string Key, string Default = "");
+ public static string InputBox(string Prompt, string Title = "", string DefaultResponse = "", int XPos = -1, int YPos = -1);
+ public static MsgBoxResult MsgBox(object Prompt, MsgBoxStyle Buttons = MsgBoxStyle.ApplicationModal, object Title = null);
+ public static string Partition(long Number, long Start, long Stop, long Interval);
+ public static void SaveSetting(string AppName, string Section, string Key, string Setting);
+ public static int Shell(string PathName, AppWinStyle Style = AppWinStyle.MinimizedFocus, bool Wait = false, int Timeout = -1);
+ public static object Switch(params object[] VarExpr);
}
}
```

View file

@ -0,0 +1,11 @@
# Microsoft.Win32.SafeHandles
``` diff
namespace Microsoft.Win32.SafeHandles {
public sealed class SafeProcessHandle : SafeHandleZeroOrMinusOneIsInvalid {
- public override bool IsInvalid { get; }
}
}
```

View file

@ -0,0 +1,25 @@
# System.Buffers.Binary
``` diff
namespace System.Buffers.Binary {
public static class BinaryPrimitives {
+ public static double ReadDoubleBigEndian(ReadOnlySpan<byte> source);
+ public static double ReadDoubleLittleEndian(ReadOnlySpan<byte> source);
+ public static float ReadSingleBigEndian(ReadOnlySpan<byte> source);
+ public static float ReadSingleLittleEndian(ReadOnlySpan<byte> source);
+ public static bool TryReadDoubleBigEndian(ReadOnlySpan<byte> source, out double value);
+ public static bool TryReadDoubleLittleEndian(ReadOnlySpan<byte> source, out double value);
+ public static bool TryReadSingleBigEndian(ReadOnlySpan<byte> source, out float value);
+ public static bool TryReadSingleLittleEndian(ReadOnlySpan<byte> source, out float value);
+ public static bool TryWriteDoubleBigEndian(Span<byte> destination, double value);
+ public static bool TryWriteDoubleLittleEndian(Span<byte> destination, double value);
+ public static bool TryWriteSingleBigEndian(Span<byte> destination, float value);
+ public static bool TryWriteSingleLittleEndian(Span<byte> destination, float value);
+ public static void WriteDoubleBigEndian(Span<byte> destination, double value);
+ public static void WriteDoubleLittleEndian(Span<byte> destination, double value);
+ public static void WriteSingleBigEndian(Span<byte> destination, float value);
+ public static void WriteSingleLittleEndian(Span<byte> destination, float value);
}
}
```

View file

@ -0,0 +1,12 @@
# System.Buffers
``` diff
namespace System.Buffers {
public ref struct SequenceReader<T> where T : struct, IEquatable<T> {
+ public ReadOnlySequence<T> UnreadSequence { get; }
+ public void AdvanceToEnd();
+ public bool TryPeek(long offset, out T value);
}
}
```

View file

@ -0,0 +1,10 @@
# System.Collections.Concurrent
``` diff
namespace System.Collections.Concurrent {
public class ConcurrentDictionary<TKey, TValue> : ICollection, ICollection<KeyValuePair<TKey, TValue>>, IDictionary, IDictionary<TKey, TValue>, IEnumerable, IEnumerable<KeyValuePair<TKey, TValue>>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IReadOnlyDictionary<TKey, TValue> {
+ public bool TryRemove(KeyValuePair<TKey, TValue> item);
}
}
```

View file

@ -0,0 +1,25 @@
# System.Collections.Generic
``` diff
namespace System.Collections.Generic {
- public class HashSet<T> : ICollection<T>, IDeserializationCallback, IEnumerable, IEnumerable<T>, IReadOnlyCollection<T>, ISerializable, ISet<T>
+ public class HashSet<T> : ICollection<T>, IDeserializationCallback, IEnumerable, IEnumerable<T>, IReadOnlyCollection<T>, IReadOnlySet<T>, ISerializable, ISet<T>
+ public interface IReadOnlySet<T> : IEnumerable, IEnumerable<T>, IReadOnlyCollection<T> {
+ bool Contains(T item);
+ bool IsProperSubsetOf(IEnumerable<T> other);
+ bool IsProperSupersetOf(IEnumerable<T> other);
+ bool IsSubsetOf(IEnumerable<T> other);
+ bool IsSupersetOf(IEnumerable<T> other);
+ bool Overlaps(IEnumerable<T> other);
+ bool SetEquals(IEnumerable<T> other);
+ }
+ public sealed class ReferenceEqualityComparer : IEqualityComparer, IEqualityComparer<object> {
+ public static ReferenceEqualityComparer Instance { get; }
+ public new bool Equals(object x, object y);
+ public int GetHashCode(object obj);
+ }
- public class SortedSet<T> : ICollection, ICollection<T>, IDeserializationCallback, IEnumerable, IEnumerable<T>, IReadOnlyCollection<T>, ISerializable, ISet<T>
+ public class SortedSet<T> : ICollection, ICollection<T>, IDeserializationCallback, IEnumerable, IEnumerable<T>, IReadOnlyCollection<T>, IReadOnlySet<T>, ISerializable, ISet<T>
}
```

View file

@ -0,0 +1,15 @@
# System.Collections.Immutable
``` diff
namespace System.Collections.Immutable {
- public sealed class ImmutableHashSet<T> : ICollection, ICollection<T>, IEnumerable, IEnumerable<T>, IImmutableSet<T>, IReadOnlyCollection<T>, ISet<T>
+ public sealed class ImmutableHashSet<T> : ICollection, ICollection<T>, IEnumerable, IEnumerable<T>, IImmutableSet<T>, IReadOnlyCollection<T>, IReadOnlySet<T>, ISet<T>
public static class ImmutableInterlocked {
+ public static bool Update<T, TArg>(ref ImmutableArray<T> location, Func<ImmutableArray<T>, TArg, ImmutableArray<T>> transformer, TArg transformerArgument);
+ public static bool Update<T>(ref ImmutableArray<T> location, Func<ImmutableArray<T>, ImmutableArray<T>> transformer);
}
- public sealed class ImmutableSortedSet<T> : ICollection, ICollection<T>, IEnumerable, IEnumerable<T>, IImmutableSet<T>, IList, IList<T>, IReadOnlyCollection<T>, IReadOnlyList<T>, ISet<T>
+ public sealed class ImmutableSortedSet<T> : ICollection, ICollection<T>, IEnumerable, IEnumerable<T>, IImmutableSet<T>, IList, IList<T>, IReadOnlyCollection<T>, IReadOnlyList<T>, IReadOnlySet<T>, ISet<T>
}
```

View file

@ -0,0 +1,15 @@
# System.Data.Common
``` diff
namespace System.Data.Common {
- public abstract class DbCommand : Component, IAsyncDisposable, IDbCommand, IDisposable
+ public abstract class DbCommand : Component, IDbCommand, IDisposable
- public abstract class DbConnection : Component, IAsyncDisposable, IDbConnection, IDisposable
+ public abstract class DbConnection : Component, IDbConnection, IDisposable
- public abstract class DbDataReader : MarshalByRefObject, IAsyncDisposable, IDataReader, IDataRecord, IDisposable, IEnumerable
+ public abstract class DbDataReader : MarshalByRefObject, IDataReader, IDataRecord, IDisposable, IEnumerable
- public abstract class DbTransaction : MarshalByRefObject, IAsyncDisposable, IDbTransaction, IDisposable
+ public abstract class DbTransaction : MarshalByRefObject, IDbTransaction, IDisposable
}
```

View file

@ -0,0 +1,119 @@
# System.Globalization
``` diff
namespace System.Globalization {
- public class CompareInfo : IDeserializationCallback {
+ public sealed class CompareInfo : IDeserializationCallback {
- public virtual string Name { get; }
+ public string Name { get; }
- public virtual int Compare(string string1, int offset1, int length1, string string2, int offset2, int length2);
+ public int Compare(string string1, int offset1, int length1, string string2, int offset2, int length2);
- public virtual int Compare(string string1, int offset1, int length1, string string2, int offset2, int length2, CompareOptions options);
+ public int Compare(string string1, int offset1, int length1, string string2, int offset2, int length2, CompareOptions options);
- public virtual int Compare(string string1, int offset1, string string2, int offset2);
+ public int Compare(string string1, int offset1, string string2, int offset2);
- public virtual int Compare(string string1, int offset1, string string2, int offset2, CompareOptions options);
+ public int Compare(string string1, int offset1, string string2, int offset2, CompareOptions options);
- public virtual int Compare(string string1, string string2);
+ public int Compare(string string1, string string2);
- public virtual int Compare(string string1, string string2, CompareOptions options);
+ public int Compare(string string1, string string2, CompareOptions options);
- public virtual int GetHashCode(string source, CompareOptions options);
+ public int GetHashCode(string source, CompareOptions options);
- public virtual SortKey GetSortKey(string source);
+ public SortKey GetSortKey(string source);
- public virtual SortKey GetSortKey(string source, CompareOptions options);
+ public SortKey GetSortKey(string source, CompareOptions options);
- public virtual int IndexOf(string source, char value);
+ public int IndexOf(string source, char value);
- public virtual int IndexOf(string source, char value, CompareOptions options);
+ public int IndexOf(string source, char value, CompareOptions options);
- public virtual int IndexOf(string source, char value, int startIndex);
+ public int IndexOf(string source, char value, int startIndex);
- public virtual int IndexOf(string source, char value, int startIndex, CompareOptions options);
+ public int IndexOf(string source, char value, int startIndex, CompareOptions options);
- public virtual int IndexOf(string source, char value, int startIndex, int count);
+ public int IndexOf(string source, char value, int startIndex, int count);
- public virtual int IndexOf(string source, char value, int startIndex, int count, CompareOptions options);
+ public int IndexOf(string source, char value, int startIndex, int count, CompareOptions options);
- public virtual int IndexOf(string source, string value);
+ public int IndexOf(string source, string value);
- public virtual int IndexOf(string source, string value, CompareOptions options);
+ public int IndexOf(string source, string value, CompareOptions options);
- public virtual int IndexOf(string source, string value, int startIndex);
+ public int IndexOf(string source, string value, int startIndex);
- public virtual int IndexOf(string source, string value, int startIndex, CompareOptions options);
+ public int IndexOf(string source, string value, int startIndex, CompareOptions options);
- public virtual int IndexOf(string source, string value, int startIndex, int count);
+ public int IndexOf(string source, string value, int startIndex, int count);
- public virtual int IndexOf(string source, string value, int startIndex, int count, CompareOptions options);
+ public int IndexOf(string source, string value, int startIndex, int count, CompareOptions options);
- public virtual bool IsPrefix(string source, string prefix);
+ public bool IsPrefix(string source, string prefix);
- public virtual bool IsPrefix(string source, string prefix, CompareOptions options);
+ public bool IsPrefix(string source, string prefix, CompareOptions options);
- public virtual bool IsSuffix(string source, string suffix);
+ public bool IsSuffix(string source, string suffix);
- public virtual bool IsSuffix(string source, string suffix, CompareOptions options);
+ public bool IsSuffix(string source, string suffix, CompareOptions options);
- public virtual int LastIndexOf(string source, char value);
+ public int LastIndexOf(string source, char value);
- public virtual int LastIndexOf(string source, char value, CompareOptions options);
+ public int LastIndexOf(string source, char value, CompareOptions options);
- public virtual int LastIndexOf(string source, char value, int startIndex);
+ public int LastIndexOf(string source, char value, int startIndex);
- public virtual int LastIndexOf(string source, char value, int startIndex, CompareOptions options);
+ public int LastIndexOf(string source, char value, int startIndex, CompareOptions options);
- public virtual int LastIndexOf(string source, char value, int startIndex, int count);
+ public int LastIndexOf(string source, char value, int startIndex, int count);
- public virtual int LastIndexOf(string source, char value, int startIndex, int count, CompareOptions options);
+ public int LastIndexOf(string source, char value, int startIndex, int count, CompareOptions options);
- public virtual int LastIndexOf(string source, string value);
+ public int LastIndexOf(string source, string value);
- public virtual int LastIndexOf(string source, string value, CompareOptions options);
+ public int LastIndexOf(string source, string value, CompareOptions options);
- public virtual int LastIndexOf(string source, string value, int startIndex);
+ public int LastIndexOf(string source, string value, int startIndex);
- public virtual int LastIndexOf(string source, string value, int startIndex, CompareOptions options);
+ public int LastIndexOf(string source, string value, int startIndex, CompareOptions options);
- public virtual int LastIndexOf(string source, string value, int startIndex, int count);
+ public int LastIndexOf(string source, string value, int startIndex, int count);
- public virtual int LastIndexOf(string source, string value, int startIndex, int count, CompareOptions options);
+ public int LastIndexOf(string source, string value, int startIndex, int count, CompareOptions options);
}
public class CultureInfo : ICloneable, IFormatProvider {
+ public static CultureInfo GetCultureInfo(string name, bool predefinedOnly);
}
- public class SortKey {
+ public sealed class SortKey {
- public virtual byte[] KeyData { get; }
+ public byte[] KeyData { get; }
- public virtual string OriginalString { get; }
+ public string OriginalString { get; }
}
- public class TextInfo : ICloneable, IDeserializationCallback {
+ public sealed class TextInfo : ICloneable, IDeserializationCallback {
- public virtual int ANSICodePage { get; }
+ public int ANSICodePage { get; }
- public virtual int EBCDICCodePage { get; }
+ public int EBCDICCodePage { get; }
- public virtual string ListSeparator { get; set; }
+ public string ListSeparator { get; set; }
- public virtual int MacCodePage { get; }
+ public int MacCodePage { get; }
- public virtual int OEMCodePage { get; }
+ public int OEMCodePage { get; }
- public virtual object Clone();
+ public object Clone();
- public virtual char ToLower(char c);
+ public char ToLower(char c);
- public virtual string ToLower(string str);
+ public string ToLower(string str);
- public virtual char ToUpper(char c);
+ public char ToUpper(char c);
- public virtual string ToUpper(string str);
+ public string ToUpper(string str);
}
}
```

View file

@ -0,0 +1,10 @@
# System.IO.Pipes
``` diff
namespace System.IO.Pipes {
public abstract class PipeStream : Stream {
+ public override Task FlushAsync(CancellationToken cancellationToken);
}
}
```

View file

@ -0,0 +1,18 @@
# System.IO
``` diff
namespace System.IO {
public class MemoryStream : Stream {
+ public override void CopyTo(ReadOnlySpanAction<byte, object> callback, object state, int bufferSize);
+ public override Task CopyToAsync(Func<ReadOnlyMemory<byte>, object, CancellationToken, ValueTask> callback, object state, int bufferSize, CancellationToken cancellationToken);
}
public abstract class Stream : MarshalByRefObject, IAsyncDisposable, IDisposable {
+ public virtual void CopyTo(ReadOnlySpanAction<byte, object> callback, object state, int bufferSize);
+ public virtual Task CopyToAsync(Func<ReadOnlyMemory<byte>, object, CancellationToken, ValueTask> callback, object state, int bufferSize, CancellationToken cancellationToken);
}
public class UnmanagedMemoryStream : Stream {
+ public override void CopyTo(ReadOnlySpanAction<byte, object> callback, object state, int bufferSize);
}
}
```

View file

@ -0,0 +1,15 @@
# System.Linq
``` diff
namespace System.Linq {
public class EnumerableQuery<T> : EnumerableQuery, IEnumerable, IEnumerable<T>, IOrderedQueryable, IOrderedQueryable<T>, IQueryable, IQueryable<T>, IQueryProvider {
- IQueryable<S> System.Linq.IQueryProvider.CreateQuery<S>(Expression expression);
+ IQueryable<TElement> System.Linq.IQueryProvider.CreateQuery<TElement>(Expression expression);
- S System.Linq.IQueryProvider.Execute<S>(Expression expression);
+ TElement System.Linq.IQueryProvider.Execute<TElement>(Expression expression);
}
}
```

View file

@ -0,0 +1,50 @@
# System.Net.Http
``` diff
namespace System.Net.Http {
public class ByteArrayContent : HttpContent {
+ protected override Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
}
public class FormUrlEncodedContent : ByteArrayContent {
+ protected override Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
}
public class HttpClient : HttpMessageInvoker {
+ public Task<byte[]> GetByteArrayAsync(string requestUri, CancellationToken cancellationToken);
+ public Task<byte[]> GetByteArrayAsync(Uri requestUri, CancellationToken cancellationToken);
+ public Task<Stream> GetStreamAsync(string requestUri, CancellationToken cancellationToken);
+ public Task<Stream> GetStreamAsync(Uri requestUri, CancellationToken cancellationToken);
+ public Task<string> GetStringAsync(string requestUri, CancellationToken cancellationToken);
+ public Task<string> GetStringAsync(Uri requestUri, CancellationToken cancellationToken);
}
public abstract class HttpContent : IDisposable {
+ public Task CopyToAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
+ public Task CopyToAsync(Stream stream, CancellationToken cancellationToken);
+ protected virtual Task<Stream> CreateContentReadStreamAsync(CancellationToken cancellationToken);
+ public Task<byte[]> ReadAsByteArrayAsync(CancellationToken cancellationToken);
+ public Task<Stream> ReadAsStreamAsync(CancellationToken cancellationToken);
+ public Task<string> ReadAsStringAsync(CancellationToken cancellationToken);
+ protected virtual Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
}
public class HttpRequestException : Exception {
+ public HttpRequestException(string message, Exception inner, HttpStatusCode? statusCode);
+ public HttpStatusCode? StatusCode { get; }
}
public class MultipartContent : HttpContent, IEnumerable, IEnumerable<HttpContent> {
+ protected override Task<Stream> CreateContentReadStreamAsync(CancellationToken cancellationToken);
+ protected override Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
}
public class MultipartFormDataContent : MultipartContent {
+ protected override Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
}
public sealed class ReadOnlyMemoryContent : HttpContent {
+ protected override Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
}
public class StreamContent : HttpContent {
+ protected override Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
}
public class StringContent : ByteArrayContent {
+ protected override Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken);
}
}
```

View file

@ -0,0 +1,16 @@
# System.Net.Mail
``` diff
namespace System.Net.Mail {
public class MailAddress {
+ public static bool TryCreate(string address, out MailAddress result);
+ public static bool TryCreate(string address, string displayName, out MailAddress result);
+ public static bool TryCreate(string address, string displayName, Encoding displayNameEncoding, out MailAddress result);
}
public class SmtpClient : IDisposable {
+ public Task SendMailAsync(MailMessage message, CancellationToken cancellationToken);
+ public Task SendMailAsync(string from, string recipients, string subject, string body, CancellationToken cancellationToken);
}
}
```

View file

@ -0,0 +1,12 @@
# System.Net.NetworkInformation
``` diff
namespace System.Net.NetworkInformation {
public class PhysicalAddress {
+ public static PhysicalAddress Parse(ReadOnlySpan<char> address);
+ public static bool TryParse(ReadOnlySpan<char> address, out PhysicalAddress value);
+ public static bool TryParse(string address, out PhysicalAddress value);
}
}
```

View file

@ -0,0 +1,10 @@
# System.Net.Security
``` diff
namespace System.Net.Security {
public readonly struct SslApplicationProtocol : IEquatable<SslApplicationProtocol> {
+ public static readonly SslApplicationProtocol Http3;
}
}
```

View file

@ -0,0 +1,18 @@
# System.Net.Sockets
``` diff
namespace System.Net.Sockets {
public class NetworkStream : Stream {
- protected Socket Socket { get; }
+ public Socket Socket { get; }
}
public class Socket : IDisposable {
+ public static bool OSSupportsUnixDomainSockets { get; }
+ public void Listen();
}
public class SocketAsyncEventArgs : EventArgs, IDisposable {
+ public SocketAsyncEventArgs(bool unsafeSuppressExecutionContextFlow);
}
}
```

View file

@ -0,0 +1,10 @@
# System.Net
``` diff
namespace System.Net {
public static class HttpVersion {
+ public static readonly Version Version30;
}
}
```

View file

@ -0,0 +1,16 @@
# System.Runtime.CompilerServices
``` diff
namespace System.Runtime.CompilerServices {
+ public sealed class CppInlineNamespaceAttribute : Attribute {
+ public CppInlineNamespaceAttribute(string dottedName);
+ }
+ public sealed class SkipLocalsInitAttribute : Attribute {
+ public SkipLocalsInitAttribute();
+ }
public static class Unsafe {
+ public static void SkipInit<T>(out T value);
}
}
```

View file

@ -0,0 +1,10 @@
# System.Runtime.ExceptionServices
``` diff
namespace System.Runtime.ExceptionServices {
public sealed class ExceptionDispatchInfo {
+ public static Exception SetCurrentStackTrace(Exception source);
}
}
```

View file

@ -0,0 +1,16 @@
# System.Runtime.InteropServices
``` diff
namespace System.Runtime.InteropServices {
+ public static class CollectionsMarshal {
+ public static Span<T> AsSpan<T>(List<T> list);
+ }
public static class MemoryMarshal {
+ public static ref T GetArrayDataReference<T>(T[] array);
}
+ public sealed class SuppressGCTransitionAttribute : Attribute {
+ public SuppressGCTransitionAttribute();
+ }
}
```

View file

@ -0,0 +1,21 @@
# System.Runtime.Intrinsics
``` diff
namespace System.Runtime.Intrinsics {
public static class Vector128 {
+ public static Vector128<Single> AsVector128(this Vector2 value);
+ public static Vector128<Single> AsVector128(this Vector3 value);
+ public static Vector128<Single> AsVector128(this Vector4 value);
+ public static Vector128<T> AsVector128<T>(this Vector<T> value) where T : struct;
+ public static Vector2 AsVector2(this Vector128<Single> value);
+ public static Vector3 AsVector3(this Vector128<Single> value);
+ public static Vector4 AsVector4(this Vector128<Single> value);
+ public static Vector<T> AsVector<T>(this Vector128<T> value) where T : struct;
}
public static class Vector256 {
+ public static Vector256<T> AsVector256<T>(this Vector<T> value) where T : struct;
+ public static Vector<T> AsVector<T>(this Vector256<T> value) where T : struct;
}
}
```

View file

@ -0,0 +1,15 @@
# System.Security.Cryptography.X509Certificates
``` diff
namespace System.Security.Cryptography.X509Certificates {
public sealed class X509ChainPolicy {
+ public X509Certificate2Collection CustomTrustStore { get; }
+ public X509ChainTrustMode TrustMode { get; set; }
}
+ public enum X509ChainTrustMode {
+ CustomRootTrust = 1,
+ System = 0,
+ }
}
```

View file

@ -0,0 +1,22 @@
# System.Security.Cryptography
``` diff
namespace System.Security.Cryptography {
public abstract class HashAlgorithm : ICryptoTransform, IDisposable {
+ public Task<byte[]> ComputeHashAsync(Stream inputStream, CancellationToken cancellationToken = default(CancellationToken));
}
public readonly struct HashAlgorithmName : IEquatable<HashAlgorithmName> {
+ public static HashAlgorithmName FromOid(string oidValue);
+ public static bool TryFromOid(string oidValue, out HashAlgorithmName value);
}
+ public static class HKDF {
+ public static byte[] DeriveKey(HashAlgorithmName hashAlgorithmName, byte[] ikm, int outputLength, byte[] salt = null, byte[] info = null);
+ public static void DeriveKey(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, Span<byte> output, ReadOnlySpan<byte> salt, ReadOnlySpan<byte> info);
+ public static byte[] Expand(HashAlgorithmName hashAlgorithmName, byte[] prk, int outputLength, byte[] info = null);
+ public static void Expand(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> prk, Span<byte> output, ReadOnlySpan<byte> info);
+ public static byte[] Extract(HashAlgorithmName hashAlgorithmName, byte[] ikm, byte[] salt = null);
+ public static int Extract(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, ReadOnlySpan<byte> salt, Span<byte> prk);
+ }
}
```

View file

@ -0,0 +1,11 @@
# System.Text.Json.Serialization
``` diff
namespace System.Text.Json.Serialization {
+ public sealed class ReferenceHandling {
+ public static ReferenceHandling Default { get; }
+ public static ReferenceHandling Preserve { get; }
+ }
}
```

View file

@ -0,0 +1,9 @@
# System.Text.Json
``` diff
namespace System.Text.Json {
public sealed class JsonSerializerOptions {
+ public ReferenceHandling ReferenceHandling { get; set; }
}
```

View file

@ -0,0 +1,11 @@
# System.Text.RegularExpressions
``` diff
namespace System.Text.RegularExpressions {
public class RegexMatchTimeoutException : TimeoutException, ISerializable {
- void System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo si, StreamingContext context);
+ void System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo info, StreamingContext context);
}
}
```

View file

@ -0,0 +1,21 @@
# System.Text
``` diff
namespace System.Text {
+ public static class EncodingExtensions {
+ public static void Convert(this Decoder decoder, in ReadOnlySequence<byte> bytes, IBufferWriter<char> writer, bool flush, out long charsUsed, out bool completed);
+ public static void Convert(this Decoder decoder, ReadOnlySpan<byte> bytes, IBufferWriter<char> writer, bool flush, out long charsUsed, out bool completed);
+ public static void Convert(this Encoder encoder, in ReadOnlySequence<char> chars, IBufferWriter<byte> writer, bool flush, out long bytesUsed, out bool completed);
+ public static void Convert(this Encoder encoder, ReadOnlySpan<char> chars, IBufferWriter<byte> writer, bool flush, out long bytesUsed, out bool completed);
+ public static byte[] GetBytes(this Encoding encoding, in ReadOnlySequence<char> chars);
+ public static long GetBytes(this Encoding encoding, in ReadOnlySequence<char> chars, IBufferWriter<byte> writer);
+ public static int GetBytes(this Encoding encoding, in ReadOnlySequence<char> chars, Span<byte> bytes);
+ public static long GetBytes(this Encoding encoding, ReadOnlySpan<char> chars, IBufferWriter<byte> writer);
+ public static long GetChars(this Encoding encoding, in ReadOnlySequence<byte> bytes, IBufferWriter<char> writer);
+ public static int GetChars(this Encoding encoding, in ReadOnlySequence<byte> bytes, Span<char> chars);
+ public static long GetChars(this Encoding encoding, ReadOnlySpan<byte> bytes, IBufferWriter<char> writer);
+ public static string GetString(this Encoding encoding, in ReadOnlySequence<byte> bytes);
+ }
}
```

View file

@ -0,0 +1,11 @@
# System.Threading.Channels
``` diff
namespace System.Threading.Channels {
public abstract class ChannelReader<T> {
+ public virtual bool CanCount { get; }
+ public virtual int Count { get; }
}
}
```

View file

@ -0,0 +1,10 @@
# System.Threading.Tasks
``` diff
namespace System.Threading.Tasks {
public class TaskCompletionSource<TResult> {
+ public void SetCanceled(CancellationToken cancellationToken);
}
}
```

View file

@ -0,0 +1,31 @@
# System.Threading
``` diff
namespace System.Threading {
public class CancellationTokenSource : IDisposable {
+ public static CancellationTokenSource CreateLinkedTokenSource(CancellationToken token);
}
public static class Interlocked {
+ public static uint Add(ref uint location1, uint value);
+ public static ulong Add(ref ulong location1, ulong value);
+ public static int And(ref int location1, int value);
+ public static long And(ref long location1, long value);
+ public static uint And(ref uint location1, uint value);
+ public static ulong And(ref ulong location1, ulong value);
+ public static uint CompareExchange(ref uint location1, uint value, uint comparand);
+ public static ulong CompareExchange(ref ulong location1, ulong value, ulong comparand);
+ public static uint Decrement(ref uint location);
+ public static ulong Decrement(ref ulong location);
+ public static uint Exchange(ref uint location1, uint value);
+ public static ulong Exchange(ref ulong location1, ulong value);
+ public static uint Increment(ref uint location);
+ public static ulong Increment(ref ulong location);
+ public static int Or(ref int location1, int value);
+ public static long Or(ref long location1, long value);
+ public static uint Or(ref uint location1, uint value);
+ public static ulong Or(ref ulong location1, ulong value);
+ public static ulong Read(ref ulong location);
}
}
```

View file

@ -0,0 +1,20 @@
# System
``` diff
namespace System {
public readonly struct Decimal : IComparable, IComparable<decimal>, IConvertible, IDeserializationCallback, IEquatable<decimal>, IFormattable {
+ public Decimal(ReadOnlySpan<int> bits);
+ public static int GetBits(Decimal d, Span<int> destination);
+ public static bool TryGetBits(Decimal d, Span<int> destination, out int valuesWritten);
}
public static class MemoryExtensions {
+ public static void Sort<T, TComparer>(this Span<T> span, TComparer comparer) where TComparer : IComparer<T>;
+ public static void Sort<T>(this Span<T> span);
+ public static void Sort<T>(this Span<T> span, Comparison<T> comparison);
+ public static void Sort<TKey, TValue, TComparer>(this Span<TKey> keys, Span<TValue> items, TComparer comparer) where TComparer : IComparer<TKey>;
+ public static void Sort<TKey, TValue>(this Span<TKey> keys, Span<TValue> items);
+ public static void Sort<TKey, TValue>(this Span<TKey> keys, Span<TValue> items, Comparison<TKey> comparison);
}
}
```

View file

@ -0,0 +1,36 @@
# API Difference aspnetcoreapp3.1 vs aspnetcore5.0-preview2
API listing follows standard diff formatting. Lines preceded by a '+' are
additions and a '-' indicates removal.
* [Microsoft.AspNetCore.Authentication](5.0-preview2_Microsoft.AspNetCore.Authentication.md)
* [Microsoft.AspNetCore.Authorization.Infrastructure](5.0-preview2_Microsoft.AspNetCore.Authorization.Infrastructure.md)
* [Microsoft.AspNetCore.Builder](5.0-preview2_Microsoft.AspNetCore.Builder.md)
* [Microsoft.AspNetCore.Builder.Extensions](5.0-preview2_Microsoft.AspNetCore.Builder.Extensions.md)
* [Microsoft.AspNetCore.Components](5.0-preview2_Microsoft.AspNetCore.Components.md)
* [Microsoft.AspNetCore.Connections](5.0-preview2_Microsoft.AspNetCore.Connections.md)
* [Microsoft.AspNetCore.Connections.Features](5.0-preview2_Microsoft.AspNetCore.Connections.Features.md)
* [Microsoft.AspNetCore.Http](5.0-preview2_Microsoft.AspNetCore.Http.md)
* [Microsoft.AspNetCore.Identity](5.0-preview2_Microsoft.AspNetCore.Identity.md)
* [Microsoft.AspNetCore.Mvc.Formatters](5.0-preview2_Microsoft.AspNetCore.Mvc.Formatters.md)
* [Microsoft.AspNetCore.Mvc.Localization](5.0-preview2_Microsoft.AspNetCore.Mvc.Localization.md)
* [Microsoft.AspNetCore.Mvc.Rendering](5.0-preview2_Microsoft.AspNetCore.Mvc.Rendering.md)
* [Microsoft.AspNetCore.Mvc.ViewFeatures](5.0-preview2_Microsoft.AspNetCore.Mvc.ViewFeatures.md)
* [Microsoft.AspNetCore.Rewrite](5.0-preview2_Microsoft.AspNetCore.Rewrite.md)
* [Microsoft.AspNetCore.Server.HttpSys](5.0-preview2_Microsoft.AspNetCore.Server.HttpSys.md)
* [Microsoft.AspNetCore.Server.Kestrel.Core](5.0-preview2_Microsoft.AspNetCore.Server.Kestrel.Core.md)
* [Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http](5.0-preview2_Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.md)
* [Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets](5.0-preview2_Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.md)
* [Microsoft.AspNetCore.SignalR](5.0-preview2_Microsoft.AspNetCore.SignalR.md)
* [Microsoft.AspNetCore.StaticFiles.Infrastructure](5.0-preview2_Microsoft.AspNetCore.StaticFiles.Infrastructure.md)
* [Microsoft.AspNetCore.WebUtilities](5.0-preview2_Microsoft.AspNetCore.WebUtilities.md)
* [Microsoft.Extensions.Configuration](5.0-preview2_Microsoft.Extensions.Configuration.md)
* [Microsoft.Extensions.Configuration.KeyPerFile](5.0-preview2_Microsoft.Extensions.Configuration.KeyPerFile.md)
* [Microsoft.Extensions.DependencyInjection](5.0-preview2_Microsoft.Extensions.DependencyInjection.md)
* [Microsoft.Extensions.Http](5.0-preview2_Microsoft.Extensions.Http.md)
* [Microsoft.Extensions.Http.Logging](5.0-preview2_Microsoft.Extensions.Http.Logging.md)
* [Microsoft.Extensions.Localization](5.0-preview2_Microsoft.Extensions.Localization.md)
* [Microsoft.Extensions.Logging.Console](5.0-preview2_Microsoft.Extensions.Logging.Console.md)
* [Microsoft.Extensions.Options](5.0-preview2_Microsoft.Extensions.Options.md)
* [Microsoft.Net.Http.Headers](5.0-preview2_Microsoft.Net.Http.Headers.md)

View file

@ -0,0 +1,13 @@
# Microsoft.AspNetCore.Authentication
``` diff
namespace Microsoft.AspNetCore.Authentication {
public class AuthenticationSchemeProvider : IAuthenticationSchemeProvider {
+ public virtual bool TryAddScheme(AuthenticationScheme scheme);
}
public interface IAuthenticationSchemeProvider {
+ bool TryAddScheme(AuthenticationScheme scheme);
}
}
```

View file

@ -0,0 +1,25 @@
# Microsoft.AspNetCore.Authorization.Infrastructure
``` diff
namespace Microsoft.AspNetCore.Authorization.Infrastructure {
public class AssertionRequirement : IAuthorizationHandler, IAuthorizationRequirement {
+ public override string ToString();
}
public class ClaimsAuthorizationRequirement : AuthorizationHandler<ClaimsAuthorizationRequirement>, IAuthorizationRequirement {
+ public override string ToString();
}
public class DenyAnonymousAuthorizationRequirement : AuthorizationHandler<DenyAnonymousAuthorizationRequirement>, IAuthorizationRequirement {
+ public override string ToString();
}
public class NameAuthorizationRequirement : AuthorizationHandler<NameAuthorizationRequirement>, IAuthorizationRequirement {
+ public override string ToString();
}
public class OperationAuthorizationRequirement : IAuthorizationRequirement {
+ public override string ToString();
}
public class RolesAuthorizationRequirement : AuthorizationHandler<RolesAuthorizationRequirement>, IAuthorizationRequirement {
+ public override string ToString();
}
}
```

View file

@ -0,0 +1,10 @@
# Microsoft.AspNetCore.Builder.Extensions
``` diff
namespace Microsoft.AspNetCore.Builder.Extensions {
public class MapOptions {
+ public bool PreserveMatchedPathSegment { get; set; }
}
}
```

View file

@ -0,0 +1,13 @@
# Microsoft.AspNetCore.Builder
``` diff
namespace Microsoft.AspNetCore.Builder {
public static class MapExtensions {
+ public static IApplicationBuilder Map(this IApplicationBuilder app, PathString pathMatch, bool preserveMatchedPathSegment, Action<IApplicationBuilder> configuration);
}
public class RequestLocalizationOptions {
+ public bool ApplyCurrentCultureToResponseHeaders { get; set; }
}
}
```

View file

@ -0,0 +1,17 @@
# Microsoft.AspNetCore.Components
``` diff
namespace Microsoft.AspNetCore.Components {
public static class BindConverter {
+ public static string FormatValue(short value, CultureInfo culture = null);
+ public static string FormatValue(short? value, CultureInfo culture = null);
+ public static bool TryConvertToNullableShort(object obj, CultureInfo culture, out short? value);
+ public static bool TryConvertToShort(object obj, CultureInfo culture, out short value);
}
public static class EventCallbackFactoryBinderExtensions {
+ public static EventCallback<ChangeEventArgs> CreateBinder(this EventCallbackFactory factory, object receiver, Action<short> setter, short existingValue, CultureInfo culture = null);
+ public static EventCallback<ChangeEventArgs> CreateBinder(this EventCallbackFactory factory, object receiver, Action<short?> setter, short? existingValue, CultureInfo culture = null);
}
}
```

View file

@ -0,0 +1,17 @@
# Microsoft.AspNetCore.Connections.Features
``` diff
namespace Microsoft.AspNetCore.Connections.Features {
+ public interface IProtocolErrorCodeFeature {
+ long Error { get; set; }
+ }
+ public interface IStreamDirectionFeature {
+ bool CanRead { get; }
+ bool CanWrite { get; }
+ }
+ public interface IStreamIdFeature {
+ long StreamId { get; }
+ }
}
```

View file

@ -0,0 +1,71 @@
# Microsoft.AspNetCore.Connections
``` diff
namespace Microsoft.AspNetCore.Connections {
+ public abstract class BaseConnectionContext : IAsyncDisposable {
+ protected BaseConnectionContext();
+ public virtual CancellationToken ConnectionClosed { get; set; }
+ public abstract string ConnectionId { get; set; }
+ public abstract IFeatureCollection Features { get; }
+ public abstract IDictionary<object, object> Items { get; set; }
+ public virtual EndPoint LocalEndPoint { get; set; }
+ public virtual EndPoint RemoteEndPoint { get; set; }
+ public abstract void Abort();
+ public abstract void Abort(ConnectionAbortedException abortReason);
+ public virtual ValueTask DisposeAsync();
+ }
- public abstract class ConnectionContext : IAsyncDisposable {
+ public abstract class ConnectionContext : BaseConnectionContext, IAsyncDisposable {
- public virtual CancellationToken ConnectionClosed { get; set; }
- public abstract string ConnectionId { get; set; }
- public abstract IFeatureCollection Features { get; }
- public abstract IDictionary<object, object> Items { get; set; }
- public virtual EndPoint LocalEndPoint { get; set; }
- public virtual EndPoint RemoteEndPoint { get; set; }
- public virtual void Abort();
+ public override void Abort();
- public virtual void Abort(ConnectionAbortedException abortReason);
+ public override void Abort(ConnectionAbortedException abortReason);
- public virtual ValueTask DisposeAsync();
}
+ public interface IMultiplexedConnectionBuilder {
+ IServiceProvider ApplicationServices { get; }
+ MultiplexedConnectionDelegate Build();
+ IMultiplexedConnectionBuilder Use(Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate> middleware);
+ }
+ public interface IMultiplexedConnectionFactory {
+ ValueTask<MultiplexedConnectionContext> ConnectAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+ public interface IMultiplexedConnectionListener : IAsyncDisposable {
+ EndPoint EndPoint { get; }
+ ValueTask<MultiplexedConnectionContext> AcceptAsync(IFeatureCollection features = null, CancellationToken cancellationToken = default(CancellationToken));
+ ValueTask UnbindAsync(CancellationToken cancellationToken = default(CancellationToken));
+ }
+ public interface IMultiplexedConnectionListenerFactory {
+ ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+ public class MultiplexedConnectionBuilder : IMultiplexedConnectionBuilder {
+ public MultiplexedConnectionBuilder(IServiceProvider applicationServices);
+ public IServiceProvider ApplicationServices { get; }
+ public MultiplexedConnectionDelegate Build();
+ public IMultiplexedConnectionBuilder Use(Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate> middleware);
+ }
+ public abstract class MultiplexedConnectionContext : BaseConnectionContext, IAsyncDisposable {
+ protected MultiplexedConnectionContext();
+ public abstract ValueTask<ConnectionContext> AcceptAsync(CancellationToken cancellationToken = default(CancellationToken));
+ public abstract ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection features = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+ public delegate Task MultiplexedConnectionDelegate(MultiplexedConnectionContext connection);
public class UriEndPoint : EndPoint {
+ public override string ToString();
}
}
```

View file

@ -0,0 +1,18 @@
# Microsoft.AspNetCore.Http
``` diff
namespace Microsoft.AspNetCore.Http {
+ public static class HttpProtocol {
+ public static readonly string Http10;
+ public static readonly string Http11;
+ public static readonly string Http2;
+ public static readonly string Http3;
+ public static string GetHttpProtocol(Version version);
+ public static bool IsHttp10(string protocol);
+ public static bool IsHttp11(string protocol);
+ public static bool IsHttp2(string protocol);
+ public static bool IsHttp3(string protocol);
+ }
}
```

View file

@ -0,0 +1,17 @@
# Microsoft.AspNetCore.Identity
``` diff
namespace Microsoft.AspNetCore.Identity {
public class ClaimsIdentityOptions {
+ public string EmailClaimType { get; set; }
}
public class IdentityBuilder {
+ public virtual IdentityBuilder AddUserConfirmation<TUserConfirmation>() where TUserConfirmation : class;
}
public class UserManager<TUser> : IDisposable where TUser : class {
- protected static string GetChangeEmailTokenPurpose(string newEmail);
+ public static string GetChangeEmailTokenPurpose(string newEmail);
}
}
```

View file

@ -0,0 +1,10 @@
# Microsoft.AspNetCore.Mvc.Formatters
``` diff
namespace Microsoft.AspNetCore.Mvc.Formatters {
public class XmlSerializerInputFormatter : TextInputFormatter, IInputFormatterExceptionPolicy {
+ protected virtual XmlReader CreateXmlReader(Stream readStream, Encoding encoding, Type type);
}
}
```

View file

@ -0,0 +1,23 @@
# Microsoft.AspNetCore.Mvc.Localization
``` diff
namespace Microsoft.AspNetCore.Mvc.Localization {
public class HtmlLocalizer : IHtmlLocalizer {
- public virtual IHtmlLocalizer WithCulture(CultureInfo culture);
}
public class HtmlLocalizer<TResource> : IHtmlLocalizer, IHtmlLocalizer<TResource> {
- public virtual IHtmlLocalizer WithCulture(CultureInfo culture);
}
public interface IHtmlLocalizer {
- IHtmlLocalizer WithCulture(CultureInfo culture);
}
public class ViewLocalizer : IHtmlLocalizer, IViewContextAware, IViewLocalizer {
- public IHtmlLocalizer WithCulture(CultureInfo culture);
}
}
```

View file

@ -0,0 +1,15 @@
# Microsoft.AspNetCore.Mvc.Rendering
``` diff
namespace Microsoft.AspNetCore.Mvc.Rendering {
+ public enum CheckBoxHiddenInputRenderMode {
+ EndOfForm = 2,
+ Inline = 1,
+ None = 0,
+ }
public class ViewContext : ActionContext {
+ public CheckBoxHiddenInputRenderMode CheckBoxHiddenInputRenderMode { get; set; }
}
}
```

View file

@ -0,0 +1,10 @@
# Microsoft.AspNetCore.Mvc.ViewFeatures
``` diff
namespace Microsoft.AspNetCore.Mvc.ViewFeatures {
public class HtmlHelperOptions {
+ public CheckBoxHiddenInputRenderMode CheckBoxHiddenInputRenderMode { get; set; }
}
}
```

View file

@ -0,0 +1,15 @@
# Microsoft.AspNetCore.Rewrite
``` diff
namespace Microsoft.AspNetCore.Rewrite {
public static class RewriteOptionsExtensions {
+ public static RewriteOptions AddRedirectToNonWww(this RewriteOptions options);
+ public static RewriteOptions AddRedirectToNonWww(this RewriteOptions options, int statusCode);
+ public static RewriteOptions AddRedirectToNonWww(this RewriteOptions options, int statusCode, params string[] domains);
+ public static RewriteOptions AddRedirectToNonWww(this RewriteOptions options, params string[] domains);
+ public static RewriteOptions AddRedirectToNonWwwPermanent(this RewriteOptions options);
+ public static RewriteOptions AddRedirectToNonWwwPermanent(this RewriteOptions options, params string[] domains);
}
}
```

View file

@ -0,0 +1,10 @@
# Microsoft.AspNetCore.Server.HttpSys
``` diff
namespace Microsoft.AspNetCore.Server.HttpSys {
public sealed class AuthenticationManager {
+ public bool AutomaticAuthentication { get; set; }
}
}
```

View file

@ -0,0 +1,32 @@
# Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
``` diff
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http {
- public class HttpParser<TRequestHandler> : IHttpParser<TRequestHandler> where TRequestHandler : IHttpHeadersHandler, IHttpRequestLineHandler {
+ public class HttpParser<TRequestHandler> where TRequestHandler : IHttpHeadersHandler, IHttpRequestLineHandler {
- bool Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.IHttpParser<TRequestHandler>.ParseRequestLine(TRequestHandler handler, in ReadOnlySequence<byte> buffer, out SequencePosition consumed, out SequencePosition examined);
}
public enum HttpVersion {
+ Http3 = 3,
}
public interface IHttpHeadersHandler {
+ void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value);
- void OnHeader(Span<byte> name, Span<byte> value);
- void OnHeadersComplete();
+ void OnHeadersComplete(bool endStream);
+ void OnStaticIndexedHeader(int index);
+ void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value);
}
- public interface IHttpParser<TRequestHandler> where TRequestHandler : IHttpHeadersHandler, IHttpRequestLineHandler {
{
- bool ParseHeaders(TRequestHandler handler, ref SequenceReader<byte> reader);
- bool ParseRequestLine(TRequestHandler handler, in ReadOnlySequence<byte> buffer, out SequencePosition consumed, out SequencePosition examined);
- }
}
```

View file

@ -0,0 +1,33 @@
# Microsoft.AspNetCore.Server.Kestrel.Core
``` diff
namespace Microsoft.AspNetCore.Server.Kestrel.Core {
+ public class Http3Limits {
+ public Http3Limits();
+ public int HeaderTableSize { get; set; }
+ public int MaxRequestHeaderFieldSize { get; set; }
+ }
public enum HttpProtocols {
+ Http1AndHttp2AndHttp3 = 7,
+ Http3 = 4,
}
public class KestrelServer : IDisposable, IServer {
- public KestrelServer(IOptions<KestrelServerOptions> options, IConnectionListenerFactory transportFactory, ILoggerFactory loggerFactory);
+ public KestrelServer(IOptions<KestrelServerOptions> options, IEnumerable<IConnectionListenerFactory> transportFactories, ILoggerFactory loggerFactory);
+ public KestrelServer(IOptions<KestrelServerOptions> options, IEnumerable<IConnectionListenerFactory> transportFactories, IEnumerable<IMultiplexedConnectionListenerFactory> multiplexedFactories, ILoggerFactory loggerFactory);
}
public class KestrelServerLimits {
+ public Http3Limits Http3 { get; }
}
public class KestrelServerOptions {
+ public bool EnableAltSvc { get; set; }
}
- public class ListenOptions : IConnectionBuilder {
+ public class ListenOptions : IConnectionBuilder, IMultiplexedConnectionBuilder {
+ MultiplexedConnectionDelegate Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder.Build();
+ IMultiplexedConnectionBuilder Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder.Use(Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate> middleware);
}
}
```

View file

@ -0,0 +1,15 @@
# Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
``` diff
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets {
+ public class SocketConnectionFactory : IAsyncDisposable, IConnectionFactory {
+ public SocketConnectionFactory(IOptions<SocketTransportOptions> options, ILoggerFactory loggerFactory);
+ public ValueTask<ConnectionContext> ConnectAsync(EndPoint endpoint, CancellationToken cancellationToken = default(CancellationToken));
+ public ValueTask DisposeAsync();
+ }
public class SocketTransportOptions {
+ public int Backlog { get; set; }
}
}
```

View file

@ -0,0 +1,18 @@
# Microsoft.AspNetCore.SignalR
``` diff
namespace Microsoft.AspNetCore.SignalR {
public static class HubClientsExtensions {
+ public static T AllExcept<T>(this IHubClients<T> hubClients, IEnumerable<string> excludedConnectionIds);
+ public static T Clients<T>(this IHubClients<T> hubClients, IEnumerable<string> connectionIds);
+ public static T GroupExcept<T>(this IHubClients<T> hubClients, string groupName, IEnumerable<string> excludedConnectionIds);
+ public static T Groups<T>(this IHubClients<T> hubClients, IEnumerable<string> groupNames);
+ public static T Users<T>(this IHubClients<T> hubClients, IEnumerable<string> userIds);
}
public class HubInvocationContext {
+ public HubInvocationContext(HubCallerContext context, Type hubType, string hubMethodName, object[] hubMethodArguments);
+ public Type HubType { get; }
}
}
```

View file

@ -0,0 +1,13 @@
# Microsoft.AspNetCore.StaticFiles.Infrastructure
``` diff
namespace Microsoft.AspNetCore.StaticFiles.Infrastructure {
public class SharedOptions {
+ public bool RedirectToAppendTrailingSlash { get; set; }
}
public abstract class SharedOptionsBase {
+ public bool RedirectToAppendTrailingSlash { get; set; }
}
}
```

View file

@ -0,0 +1,13 @@
# Microsoft.AspNetCore.WebUtilities
``` diff
namespace Microsoft.AspNetCore.WebUtilities {
public class HttpResponseStreamWriter : TextWriter {
+ public override void Write(ReadOnlySpan<char> value);
+ public override Task WriteAsync(ReadOnlyMemory<char> value, CancellationToken cancellationToken = default(CancellationToken));
+ public override void WriteLine(ReadOnlySpan<char> value);
+ public override Task WriteLineAsync(ReadOnlyMemory<char> value, CancellationToken cancellationToken = default(CancellationToken));
}
}
```

View file

@ -0,0 +1,15 @@
# Microsoft.Extensions.Configuration.KeyPerFile
``` diff
namespace Microsoft.Extensions.Configuration.KeyPerFile {
- public class KeyPerFileConfigurationProvider : ConfigurationProvider {
+ public class KeyPerFileConfigurationProvider : ConfigurationProvider, IDisposable {
+ public void Dispose();
}
public class KeyPerFileConfigurationSource : IConfigurationSource {
+ public int ReloadDelay { get; set; }
+ public bool ReloadOnChange { get; set; }
}
}
```

View file

@ -0,0 +1,11 @@
# Microsoft.Extensions.Configuration
``` diff
namespace Microsoft.Extensions.Configuration {
public static class KeyPerFileConfigurationBuilderExtensions {
+ public static IConfigurationBuilder AddKeyPerFile(this IConfigurationBuilder builder, string directoryPath);
+ public static IConfigurationBuilder AddKeyPerFile(this IConfigurationBuilder builder, string directoryPath, bool optional, bool reloadOnChange);
}
}
```

View file

@ -0,0 +1,17 @@
# Microsoft.Extensions.DependencyInjection
``` diff
namespace Microsoft.Extensions.DependencyInjection {
public static class HttpClientBuilderExtensions {
+ public static IHttpClientBuilder RedactLoggedHeaders(this IHttpClientBuilder builder, IEnumerable<string> redactedLoggedHeaderNames);
+ public static IHttpClientBuilder RedactLoggedHeaders(this IHttpClientBuilder builder, Func<string, bool> shouldRedactHeaderValue);
}
public static class HttpClientFactoryServiceCollectionExtensions {
+ public static IHttpClientBuilder AddHttpClient<TClient, TImplementation>(this IServiceCollection services, Func<HttpClient, IServiceProvider, TImplementation> factory) where TClient : class where TImplementation : class, TClient;
+ public static IHttpClientBuilder AddHttpClient<TClient, TImplementation>(this IServiceCollection services, Func<HttpClient, TImplementation> factory) where TClient : class where TImplementation : class, TClient;
+ public static IHttpClientBuilder AddHttpClient<TClient, TImplementation>(this IServiceCollection services, string name, Func<HttpClient, IServiceProvider, TImplementation> factory) where TClient : class where TImplementation : class, TClient;
+ public static IHttpClientBuilder AddHttpClient<TClient, TImplementation>(this IServiceCollection services, string name, Func<HttpClient, TImplementation> factory) where TClient : class where TImplementation : class, TClient;
}
}
```

View file

@ -0,0 +1,13 @@
# Microsoft.Extensions.Http.Logging
``` diff
namespace Microsoft.Extensions.Http.Logging {
public class LoggingHttpMessageHandler : DelegatingHandler {
+ public LoggingHttpMessageHandler(ILogger logger, HttpClientFactoryOptions options);
}
public class LoggingScopeHttpMessageHandler : DelegatingHandler {
+ public LoggingScopeHttpMessageHandler(ILogger logger, HttpClientFactoryOptions options);
}
}
```

View file

@ -0,0 +1,10 @@
# Microsoft.Extensions.Http
``` diff
namespace Microsoft.Extensions.Http {
public class HttpClientFactoryOptions {
+ public Func<string, bool> ShouldRedactHeaderValue { get; set; }
}
}
```

View file

@ -0,0 +1,30 @@
# Microsoft.Extensions.Localization
``` diff
namespace Microsoft.Extensions.Localization {
public interface IStringLocalizer {
- IStringLocalizer WithCulture(CultureInfo culture);
}
public class ResourceManagerStringLocalizer : IStringLocalizer {
- public IStringLocalizer WithCulture(CultureInfo culture);
}
- public class ResourceManagerWithCultureStringLocalizer : ResourceManagerStringLocalizer {
{
- public ResourceManagerWithCultureStringLocalizer(ResourceManager resourceManager, Assembly resourceAssembly, string baseName, IResourceNamesCache resourceNamesCache, CultureInfo culture, ILogger logger);
- public override LocalizedString this[string name, params object[] arguments] { get; }
- public override LocalizedString this[string name] { get; }
- public override IEnumerable<LocalizedString> GetAllStrings(bool includeParentCultures);
- }
public class StringLocalizer<TResourceSource> : IStringLocalizer, IStringLocalizer<TResourceSource> {
- public virtual IStringLocalizer WithCulture(CultureInfo culture);
}
}
```

View file

@ -0,0 +1,10 @@
# Microsoft.Extensions.Logging.Console
``` diff
namespace Microsoft.Extensions.Logging.Console {
public class ConsoleLoggerOptions {
+ public bool UseUtcTimestamp { get; set; }
}
}
```

View file

@ -0,0 +1,27 @@
# Microsoft.Extensions.Options
``` diff
namespace Microsoft.Extensions.Options {
- public interface IOptions<out TOptions> where TOptions : class, new()
+ public interface IOptions<out TOptions> where TOptions : class
- public interface IOptionsFactory<TOptions> where TOptions : class, new()
+ public interface IOptionsFactory<TOptions> where TOptions : class
- public interface IOptionsSnapshot<out TOptions> : IOptions<TOptions> where TOptions : class, new()
+ public interface IOptionsSnapshot<out TOptions> : IOptions<TOptions> where TOptions : class
public static class Options {
- public static IOptions<TOptions> Create<TOptions>(TOptions options) where TOptions : class, new();
+ public static IOptions<TOptions> Create<TOptions>(TOptions options) where TOptions : class;
}
- public class OptionsFactory<TOptions> : IOptionsFactory<TOptions> where TOptions : class, new() {
+ public class OptionsFactory<TOptions> : IOptionsFactory<TOptions> where TOptions : class {
+ protected virtual TOptions CreateInstance(string name);
}
- public class OptionsManager<TOptions> : IOptions<TOptions>, IOptionsSnapshot<TOptions> where TOptions : class, new()
+ public class OptionsManager<TOptions> : IOptions<TOptions>, IOptionsSnapshot<TOptions> where TOptions : class
- public class OptionsMonitor<TOptions> : IDisposable, IOptionsMonitor<TOptions> where TOptions : class, new()
+ public class OptionsMonitor<TOptions> : IDisposable, IOptionsMonitor<TOptions> where TOptions : class
- public class OptionsWrapper<TOptions> : IOptions<TOptions> where TOptions : class, new()
+ public class OptionsWrapper<TOptions> : IOptions<TOptions> where TOptions : class
}
```

View file

@ -0,0 +1,11 @@
# Microsoft.Net.Http.Headers
``` diff
namespace Microsoft.Net.Http.Headers {
public static class HeaderNames {
+ public static readonly string AltSvc;
+ public static readonly string XRequestedWith;
}
}
```

View file

@ -0,0 +1,6 @@
# .NET 5.0 Preview 2 API Changes
The following API changes were made in .NET 5.0 Preview 2:
- [.NET](./.Net/5.0-preview2.md)
- [ASP.NET](./Asp.Net/5.0-preview2.md)