TwitterAppBuilderExtensions.UseTwitterAuthentication 方法

定义

重载

UseTwitterAuthentication(IApplicationBuilder)
已过时.
已过时.

UseTwitterAuthentication 已过时。 使用 AddAuthentication () 配置 Twitter 身份验证。在 ConfigureServices 中添加Twitter。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)
已过时.
已过时.

UseTwitterAuthentication 已过时。 使用 AddAuthentication () 配置 Twitter 身份验证。在 ConfigureServices 中添加Twitter。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)

TwitterMiddleware 中间件添加到指定的 IApplicationBuilder中,这将启用 Twitter 身份验证功能。

UseTwitterAuthentication(IApplicationBuilder)

Source:
TwitterAppBuilderExtensions.cs
Source:
TwitterAppBuilderExtensions.cs

注意

UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseTwitterAuthentication 已过时。 使用 AddAuthentication () 配置 Twitter 身份验证。在 ConfigureServices 中添加Twitter。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseTwitterAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseTwitterAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseTwitterAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseTwitterAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseTwitterAuthentication (app As IApplicationBuilder) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder 向其添加处理程序的 。

返回

完成操作后对此实例的引用。

属性

适用于

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)

Source:
TwitterAppBuilderExtensions.cs
Source:
TwitterAppBuilderExtensions.cs

注意

UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseTwitterAuthentication 已过时。 使用 AddAuthentication () 配置 Twitter 身份验证。在 ConfigureServices 中添加Twitter。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseTwitterAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::Twitter::TwitterOptions ^ options);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions options);
[System.Obsolete("UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions options);
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseTwitterAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseTwitterAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseTwitterAuthentication (app As IApplicationBuilder, options As TwitterOptions) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder 向其添加处理程序的 。

options
TwitterOptions

用于配置提供的 TwitterOptions的操作委托。

返回

完成操作后对此实例的引用。

属性

适用于

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)

TwitterMiddleware 中间件添加到指定的 IApplicationBuilder中,这将启用 Twitter 身份验证功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseTwitterAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::TwitterOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.TwitterOptions options);
static member UseTwitterAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.TwitterOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseTwitterAuthentication (app As IApplicationBuilder, options As TwitterOptions) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder 向其添加中间件的 。

options
TwitterOptions

用于配置提供的 TwitterOptions的操作委托。

返回

完成操作后对此实例的引用。

适用于