-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Evaluate obsolete APIs from 2.2 and consider removing them in 3.0.0 #3654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @davidfowl on Thursday, January 11, 2018 12:04:43 PM 👍 |
From @Eilon on Thursday, January 11, 2018 1:21:50 PM cc @DamianEdwards as well. |
W.r.t.
|
I volunteer for all of the |
Triage team: @Eilon can you look over remaining 3.0 code and see if there any obsolete members left to be removed? If so, let's open items for individual area owners. |
Here's everything marked obsolete in 'master' in this repo. Please use the links below to compare master and release/2.2 to see if this is a pre-existing obsolete message for a member that can now be deleted. For each item consider whether to log a bug because we will take an action, and then check the checkbox to mark it as done (even if there's no further action). (1) src\Antiforgery\src\AntiforgeryOptions.csLinks: [master] | [release/2.2]
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Name) + ".")]
public string CookieName { get => Cookie.Name; set => Cookie.Name = value; } (2) src\Antiforgery\src\AntiforgeryOptions.csLinks: [master] | [release/2.2]
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Path) + ".")]
public PathString? CookiePath { get => Cookie.Path; set => Cookie.Path = value; } (3) src\Antiforgery\src\AntiforgeryOptions.csLinks: [master] | [release/2.2]
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Domain) + ".")]
public string CookieDomain { get => Cookie.Domain; set => Cookie.Domain = value; } (4) src\Antiforgery\src\AntiforgeryOptions.csLinks: [master] | [release/2.2]
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is to set " + nameof(Cookie) + "." + nameof(CookieBuilder.SecurePolicy) + ".")]
public bool RequireSsl
{ (5) src\Shared\Diagnostics\AttributeValue.csLinks: [master] | [release/2.2]
[Obsolete("This type is for internal use only and will be removed in a future version.")]
public class AttributeValue
{ (6) src\Shared\Diagnostics\BaseView.csLinks: [master] | [release/2.2]
[Obsolete("This type is for internal use only and will be removed in a future version.")]
public abstract class BaseView
{ (7) src\Shared\Diagnostics\HelperResult.csLinks: [master] | [release/2.2]
[Obsolete("This type is for internal use only and will be removed in a future version.")]
public class HelperResult
{ (8) src\Http\Http\src\HttpContextFactory.csLinks: [master] | [release/2.2]
[Obsolete("This is obsolete and will be removed in a future version. Use DefaultHttpContextFactory instead.")]
public class HttpContextFactory : IHttpContextFactory
{ (9) src\Http\Routing\src\DefaultInlineConstraintResolver.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.")]
public DefaultInlineConstraintResolver(IOptions<RouteOptions> routeOptions)
{ (10) src\Http\Routing\src\IRouteValuesAddressMetadata.csLinks: [master] | [release/2.2]
[Obsolete("Route values are now specified on a RoutePattern.")]
public interface IRouteValuesAddressMetadata
{ (11) src\Http\Routing\src\RouteValuesAddressMetadata.csLinks: [master] | [release/2.2]
[Obsolete("Route values are now specified on a RoutePattern.")]
public sealed class RouteValuesAddressMetadata : IRouteValuesAddressMetadata
{ (12) src\Identity\Core\src\BuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete(
"This method is obsolete and will be removed in a future version. " +
"The recommended alternative is UseAuthentication(). " + (13) src\Middleware\StaticFiles\src\StaticFileResponseContext.csLinks: [master] | [release/2.2]
[Obsolete("Use the constructor that passes in the HttpContext and IFileInfo parameters: StaticFileResponseContext(HttpContext context, IFileInfo file)", false)]
public StaticFileResponseContext()
{ (14) src\Middleware\WebSockets\src\WebSocketMiddleware.csLinks: [master] | [release/2.2]
[Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory.")]
public WebSocketMiddleware(RequestDelegate next, IOptions<WebSocketOptions> options)
: this(next, options, NullLoggerFactory.Instance) (15) src\Mvc\src\Microsoft.AspNetCore.Mvc.ApiExplorer\DefaultApiDescriptionProvider.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future release.")]
public DefaultApiDescriptionProvider(
IOptions<MvcOptions> optionsAccessor, (16) src\Mvc\src\Microsoft.AspNetCore.Mvc.ApiExplorer\DefaultApiDescriptionProvider.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future release.")]
public DefaultApiDescriptionProvider(
IOptions<MvcOptions> optionsAccessor, (17) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\CompatibilityVersion.csLinks: [master] | [release/2.2]
[Obsolete("This " + nameof(CompatibilityVersion) + " value is obsolete. The recommended alternatives are " +
nameof(Version_3_0) + " or later.")]
Version_2_0, (18) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\CompatibilityVersion.csLinks: [master] | [release/2.2]
[Obsolete("This " + nameof(CompatibilityVersion) + " value is obsolete. The recommended alternatives are " +
nameof(Version_3_0) + " or later.")]
Version_2_1, (19) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\CompatibilityVersion.csLinks: [master] | [release/2.2]
[Obsolete("This " + nameof(CompatibilityVersion) + " value is obsolete. The recommended alternatives are " +
nameof(Version_3_0) + " or later.")]
Version_2_2, (20) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\LocalRedirectResult.csLinks: [master] | [release/2.2]
[Obsolete("This implementation will be removed in a future release, use ExecuteResultAsync.")]
public override void ExecuteResult(ActionContext context)
{ (21) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\RedirectResult.csLinks: [master] | [release/2.2]
[Obsolete("This implementation will be removed in a future release, use ExecuteResultAsync.")]
public override void ExecuteResult(ActionContext context)
{ (22) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\RedirectToActionResult.csLinks: [master] | [release/2.2]
[Obsolete("This implementation will be removed in a future release, use ExecuteResultAsync.")]
public override void ExecuteResult(ActionContext context)
{ (23) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\RedirectToPageResult.csLinks: [master] | [release/2.2]
[Obsolete("This implementation will be removed in a future release, use ExecuteResultAsync.")]
public override void ExecuteResult(ActionContext context)
{ (24) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\RedirectToRouteResult.csLinks: [master] | [release/2.2]
[Obsolete("This implementation will be removed in a future release, use ExecuteResultAsync.")]
public override void ExecuteResult(ActionContext context)
{ (25) src\Mvc\src\Microsoft.AspNetCore.Mvc.Formatters.Xml\ProblemDetails21Wrapper.csLinks: [master] | [release/2.2]
[Obsolete("This type is deprecated and will be removed in a future version")]
public class ProblemDetails21Wrapper : IXmlSerializable, IUnwrappable
{ (26) src\Mvc\src\Microsoft.AspNetCore.Mvc.Formatters.Xml\ValidationProblemDetails21Wrapper.csLinks: [master] | [release/2.2]
[Obsolete("This type is deprecated and will be removed in a future version")]
public class ValidationProblemDetails21Wrapper : ProblemDetails21Wrapper, IUnwrappable
{ (27) src\Mvc\src\Microsoft.AspNetCore.Mvc.Formatters.Xml\XmlDataContractSerializerInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public XmlDataContractSerializerInputFormatter()
{ (28) src\Mvc\src\Microsoft.AspNetCore.Mvc.Formatters.Xml\XmlDataContractSerializerInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public XmlDataContractSerializerInputFormatter(bool suppressInputFormatterBuffering)
: this() (29) src\Mvc\src\Microsoft.AspNetCore.Mvc.Formatters.Xml\XmlSerializerInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public XmlSerializerInputFormatter()
{ (30) src\Mvc\src\Microsoft.AspNetCore.Mvc.Formatters.Xml\XmlSerializerInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public XmlSerializerInputFormatter(bool suppressInputFormatterBuffering)
: this() (31) src\Mvc\src\Microsoft.AspNetCore.Mvc.NewtonsoftJson\NewtonsoftJsonInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public NewtonsoftJsonInputFormatter(
ILogger logger, (32) src\Mvc\src\Microsoft.AspNetCore.Mvc.NewtonsoftJson\NewtonsoftJsonInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public NewtonsoftJsonInputFormatter(
ILogger logger, (33) src\Mvc\src\Microsoft.AspNetCore.Mvc.NewtonsoftJson\NewtonsoftJsonInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public NewtonsoftJsonInputFormatter(
ILogger logger, (34) src\Mvc\src\Microsoft.AspNetCore.Mvc.NewtonsoftJson\NewtonsoftJsonPatchInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public NewtonsoftJsonPatchInputFormatter(
ILogger logger, (35) src\Mvc\src\Microsoft.AspNetCore.Mvc.NewtonsoftJson\NewtonsoftJsonPatchInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public NewtonsoftJsonPatchInputFormatter(
ILogger logger, (36) src\Mvc\src\Microsoft.AspNetCore.Mvc.NewtonsoftJson\NewtonsoftJsonPatchInputFormatter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public NewtonsoftJsonPatchInputFormatter(
ILogger logger, (37) src\Mvc\src\Microsoft.AspNetCore.Mvc.TagHelpers\ImageTagHelper.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public ImageTagHelper(
IHostingEnvironment hostingEnvironment, (38) src\Mvc\src\Microsoft.AspNetCore.Mvc.TagHelpers\LinkTagHelper.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public LinkTagHelper(
IHostingEnvironment hostingEnvironment, (39) src\Mvc\src\Microsoft.AspNetCore.Mvc.TagHelpers\ScriptTagHelper.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public ScriptTagHelper(
IHostingEnvironment hostingEnvironment, (40) src\Mvc\src\Microsoft.AspNetCore.Mvc.ViewFeatures\CookieTempDataProviderOptions.csLinks: [master] | [release/2.2]
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Path) + ".")]
public string Path { get => Cookie.Path; set => Cookie.Path = value; } (41) src\Mvc\src\Microsoft.AspNetCore.Mvc.ViewFeatures\CookieTempDataProviderOptions.csLinks: [master] | [release/2.2]
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Domain) + ".")]
public string Domain { get => Cookie.Domain; set => Cookie.Domain = value; } (42) src\Mvc\src\Microsoft.AspNetCore.Mvc.ViewFeatures\CookieTempDataProviderOptions.csLinks: [master] | [release/2.2]
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Name) + ".")]
public string CookieName { get; set; } = CookieTempDataProvider.CookieName;
#endregion (43) src\Components\Components\src\Json\JsonUtil.csLinks: [master] | [release/2.2]
[Obsolete("Use Microsoft.JSInterop.Json instead.")]
public static class JsonUtil
{ (44) src\Components\Components\src\Json\JsonUtil.csLinks: [master] | [release/2.2]
[Obsolete("Use Microsoft.JSInterop.Json.Serialize instead.")]
public static string Serialize(object value)
=> Json.Serialize(value); (45) src\Components\Components\src\Json\JsonUtil.csLinks: [master] | [release/2.2]
[Obsolete("Use Microsoft.JSInterop.Json.Deserialize<T> instead.")]
public static T Deserialize<T>(string json)
=> Json.Deserialize<T>(json); (46) src\Http\Routing\src\Tree\TreeRouteBuilder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended " +
"alternative is the overload that does not take a UrlEncoder.")]
public TreeRouteBuilder( (47) src\Middleware\CORS\src\Infrastructure\CorsService.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public CorsService(IOptions<CorsOptions> options)
: this(options, loggerFactory: NullLoggerFactory.Instance) (48) src\Mvc\src\Microsoft.AspNetCore.Mvc.Abstractions\Formatters\OutputFormatterCanWriteContext.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. Please use the constructor taking a HttpContext instead.")]
protected OutputFormatterCanWriteContext()
{ (49) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\Formatters\FormatFilter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public FormatFilter(IOptions<MvcOptions> options)
: this(options, NullLoggerFactory.Instance) (50) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\ModelBinderFactory.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(IServiceProvider) + ".")]
public ModelBinderFactory(IModelMetadataProvider metadataProvider, IOptions<MvcOptions> options) (51) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\ParameterBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes a " + nameof(MvcOptions) + " accessor and an "
+ nameof(ILoggerFactory) + " .")] (52) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\ParameterBinder.csLinks: [master] | [release/2.2]
[Obsolete("This method overload is obsolete and will be removed in a future version. The recommended " +
"alternative is the overload that also takes " + nameof(IModelBinder) + ", " + nameof(ModelMetadata) +
" and " + nameof(Object) + " parameters.")] (53) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\ParameterBinder.csLinks: [master] | [release/2.2]
[Obsolete("This method overload is obsolete and will be removed in a future version. The recommended " +
"alternative is the overload that also takes " + nameof(IModelBinder) + " and " + nameof(ModelMetadata) +
" parameters.")] (54) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\Routing\KnownRouteValueConstraint.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete. Use KnownRouteValueConstraint.ctor(IActionDescriptorCollectionProvider) instead.")]
public KnownRouteValueConstraint()
{ (55) src\Mvc\src\Microsoft.AspNetCore.Mvc.Razor\Compilation\CompiledViewDescriptor.csLinks: [master] | [release/2.2]
[Obsolete("Use Item instead. RazorViewAttribute has been superseded by RazorCompiledItem and will not be used by the runtime.")]
public RazorViewAttribute ViewAttribute { get; set; }
#pragma warning restore CS0618 // Type or member is obsolete (56) src\Mvc\src\Microsoft.AspNetCore.Mvc.Razor\Compilation\RazorViewAttribute.csLinks: [master] | [release/2.2]
[Obsolete("This attribute has been superseded by RazorCompiledItem and will not be used by the runtime.")]
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class RazorViewAttribute : Attribute (57) src\Mvc\src\Microsoft.AspNetCore.Mvc.Razor\Compilation\ViewsFeatureProvider.csLinks: [master] | [release/2.2]
[Obsolete("This type is obsolete and will be removed in a future version. See " + nameof(IRazorCompiledItemProvider) + " for alternatives.")]
public class ViewsFeatureProvider : IApplicationFeatureProvider<ViewsFeature>
{ (58) src\Mvc\src\Microsoft.AspNetCore.Mvc.RazorPages\Infrastructure\PageArgumentBinder.csLinks: [master] | [release/2.2]
[Obsolete("This type is obsolete and will be removed in a future version.")]
public abstract class PageArgumentBinder
{ (59) src\Mvc\src\Microsoft.AspNetCore.Mvc.RazorPages\Infrastructure\RazorPageAdapter.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version.")]
public RazorPageAdapter(RazorPageBase page)
{ (60) src\Mvc\src\Microsoft.AspNetCore.Mvc.RazorPages\Infrastructure\RazorPageAttribute.csLinks: [master] | [release/2.2]
[Obsolete("This attribute has been superseded by RazorCompiledItem and will not be used by the runtime.")]
public class RazorPageAttribute : RazorViewAttribute
{ (61) src\Security\Authentication\Cookies\src\CookieAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseCookieAuthentication(this IApplicationBuilder app)
{ (62) src\Security\Authentication\Cookies\src\CookieAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseCookieAuthentication(this IApplicationBuilder app, CookieAuthenticationOptions options)
{ (63) src\Security\Authentication\Facebook\src\FacebookAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseFacebookAuthentication is obsolete. Configure Facebook authentication with AddAuthentication().AddFacebook in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseFacebookAuthentication(this IApplicationBuilder app)
{ (64) src\Security\Authentication\Facebook\src\FacebookAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseFacebookAuthentication is obsolete. Configure Facebook authentication with AddAuthentication().AddFacebook in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseFacebookAuthentication(this IApplicationBuilder app, FacebookOptions options)
{ (65) src\Security\Authentication\Google\src\GoogleAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseGoogleAuthentication is obsolete. Configure Google authentication with AddAuthentication().AddGoogle in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseGoogleAuthentication(this IApplicationBuilder app)
{ (66) src\Security\Authentication\Google\src\GoogleAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseGoogleAuthentication is obsolete. Configure Google authentication with AddAuthentication().AddGoogle in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseGoogleAuthentication(this IApplicationBuilder app, GoogleOptions options)
{ (67) src\Security\Authentication\JwtBearer\src\JwtBearerAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseJwtBearerAuthentication(this IApplicationBuilder app)
{ (68) src\Security\Authentication\JwtBearer\src\JwtBearerAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseJwtBearerAuthentication(this IApplicationBuilder app, JwtBearerOptions options)
{ (69) src\Security\Authentication\MicrosoftAccount\src\MicrosoftAccountAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseMicrosoftAccountAuthentication(this IApplicationBuilder app)
{ (70) src\Security\Authentication\MicrosoftAccount\src\MicrosoftAccountAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseMicrosoftAccountAuthentication(this IApplicationBuilder app, MicrosoftAccountOptions options)
{ (71) src\Security\Authentication\OAuth\src\OAuthAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseOAuthAuthentication(this IApplicationBuilder app)
{ (72) src\Security\Authentication\OAuth\src\OAuthAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseOAuthAuthentication(this IApplicationBuilder app, OAuthOptions options)
{ (73) src\Security\Authentication\OpenIdConnect\src\OpenIdConnectAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseOpenIdConnectAuthentication(this IApplicationBuilder app)
{ (74) src\Security\Authentication\OpenIdConnect\src\OpenIdConnectAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseOpenIdConnectAuthentication(this IApplicationBuilder app, OpenIdConnectOptions options)
{ (75) src\Security\Authentication\Twitter\src\TwitterAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseTwitterAuthentication(this IApplicationBuilder app)
{ (76) src\Security\Authentication\Twitter\src\TwitterAppBuilderExtensions.csLinks: [master] | [release/2.2]
[Obsolete("UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", error: true)]
public static IApplicationBuilder UseTwitterAuthentication(this IApplicationBuilder app, TwitterOptions options)
{ (77) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\ArrayModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public ArrayModelBinder(IModelBinder elementBinder) (78) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\ByteArrayModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that takes an " + nameof(ILoggerFactory) + ".")]
public ByteArrayModelBinder() (79) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\CollectionModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public CollectionModelBinder(IModelBinder elementBinder) (80) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\ComplexTypeModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public ComplexTypeModelBinder(IDictionary<ModelMetadata, IModelBinder> propertyBinders) (81) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\DecimalModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public DecimalModelBinder(NumberStyles supportedStyles) (82) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\DictionaryModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public DictionaryModelBinder(IModelBinder keyBinder, IModelBinder valueBinder) (83) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\DoubleModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public DoubleModelBinder(NumberStyles supportedStyles) (84) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\FloatModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public FloatModelBinder(NumberStyles supportedStyles) (85) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\FormCollectionModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that takes an " + nameof(ILoggerFactory) + ".")]
public FormCollectionModelBinder() (86) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\FormFileModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that takes an " + nameof(ILoggerFactory) + ".")]
public FormFileModelBinder() (87) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\HeaderModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that takes an " + nameof(ILoggerFactory) + " and an " + nameof(IModelBinder) + ".")]
public HeaderModelBinder() (88) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\KeyValuePairModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public KeyValuePairModelBinder(IModelBinder keyBinder, IModelBinder valueBinder) (89) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Binders\SimpleTypeModelBinder.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative"
+ " is the overload that also takes an " + nameof(ILoggerFactory) + ".")]
public SimpleTypeModelBinder(Type type) (90) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Metadata\ModelAttributes.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is " + nameof(ModelAttributes) + "." + nameof(GetAttributesForType) + ".")]
public ModelAttributes(IEnumerable<object> typeAttributes)
: this(typeAttributes, null, null) (91) src\Mvc\src\Microsoft.AspNetCore.Mvc.Core\ModelBinding\Metadata\ModelAttributes.csLinks: [master] | [release/2.2]
[Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is " + nameof(ModelAttributes) + "." + nameof(GetAttributesForProperty) + ".")]
public ModelAttributes(IEnumerable<object> propertyAttributes, IEnumerable<object> typeAttributes)
: this(typeAttributes, propertyAttributes, null) (92) src\Middleware\Diagnostics\src\WelcomePage\Views\Obsolete\WelcomePage.csLinks: [master] | [release/2.2]
[Obsolete("This type is for internal use only and will be removed in a future version.")]
public class WelcomePage : Microsoft.AspNetCore.DiagnosticsViewPage.Views.BaseView
{ |
@mkArtakMSFT / @muratg / @ajcvickers - please review the list above and take appropriate action on the items. |
@Eilon I reacted to 3 of the items that are in my areas, and filed bugs for them. (Nice work BTW!) |
Need to check again in the release/2.2 branch and see what's left. |
I reviewed all current master Obsolete attributes in our product code repos (EF, AspNetCore, Tooling, and Extensions) and none are remnants from 2.2 So, we're good to go for 3.0! |
From @Eilon on Thursday, January 11, 2018 11:54:54 AM
In theory, when we start working on 3.0.0, we should delete all APIs that have been marked as
[Obsolete]
. There could be exceptions to that, but we should at least look.Copied from original issue: aspnet/Universe#776
The text was updated successfully, but these errors were encountered: