C# Class SimpleSocialAuth.Core.AuthHandlerFactory

Use to produce one of the supported handlers.
Datei anzeigen Open project: rafek/SimpleSocialAuth

Public Methods

Method Description
AddHandler ( string key, Func factoryMethod ) : void

Map your own authentication handler.

Create ( string handler ) : IAuthenticationHandler

Create a new handler

Private Methods

Method Description
AuthHandlerFactory ( ) : System
MapHandlers ( ) : void

Method Details

AddHandler() public static method

Map your own authentication handler.
public static AddHandler ( string key, Func factoryMethod ) : void
key string Lower case name such as "facebook"
factoryMethod Func Func used to created the handler.
return void

Create() public static method

Create a new handler
public static Create ( string handler ) : IAuthenticationHandler
handler string Lower case name such as "facebook"
return IAuthenticationHandler