TwitterAppBuilderExtensions Class¶
Extension methods to add Twitter authentication capabilities to an HTTP application pipeline.
- Namespace
Microsoft.AspNetCore.Builder
- Assemblies
- Microsoft.AspNetCore.Authentication.Twitter
Syntax¶
public class TwitterAppBuilderExtensions
-
class
Microsoft.AspNetCore.Builder.
TwitterAppBuilderExtensions
Methods¶
-
UseTwitterAuthentication
(Microsoft.AspNetCore.Builder.IApplicationBuilder)¶ Adds the
Microsoft.AspNetCore.Authentication.Twitter.TwitterMiddleware
middleware to the specifiedMicrosoft.AspNetCore.Builder.IApplicationBuilder
, which enables Twitter authentication capabilities.Arguments: app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The Microsoft.AspNetCore.Builder.IApplicationBuilder
to add the middleware to.Return type: Microsoft.AspNetCore.Builder.IApplicationBuilder Returns: A reference to this instance after the operation has completed. public static IApplicationBuilder UseTwitterAuthentication(this IApplicationBuilder app)
-
UseTwitterAuthentication
(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Builder.TwitterOptions) Adds the
Microsoft.AspNetCore.Authentication.Twitter.TwitterMiddleware
middleware to the specifiedMicrosoft.AspNetCore.Builder.IApplicationBuilder
, which enables Twitter authentication capabilities.Arguments: - app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
Microsoft.AspNetCore.Builder.IApplicationBuilder
to add the middleware to. - options (Microsoft.AspNetCore.Builder.TwitterOptions) – An action delegate to configure the provided
Microsoft.AspNetCore.Builder.TwitterOptions
.
Return type: Returns: A reference to this instance after the operation has completed.
public static IApplicationBuilder UseTwitterAuthentication(this IApplicationBuilder app, TwitterOptions options)
- app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
-