本文整理汇总了C#中IFormsAuthentication类的典型用法代码示例。如果您正苦于以下问题:C# IFormsAuthentication类的具体用法?C# IFormsAuthentication怎么用?C# IFormsAuthentication使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IFormsAuthentication类属于命名空间,在下文中一共展示了IFormsAuthentication类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AuthenticationPage
protected AuthenticationPage(IFormsAuthentication formsAuthentication)
{
if(formsAuthentication == null)
throw new ArgumentNullException("formsAuthentication");
this._formsAuthentication = formsAuthentication;
}
示例2: SamplePushUserRegistrationService
public SamplePushUserRegistrationService(HttpContextBase context, WebOperationContext webOperationContext, IFormsAuthentication formsAuth, IMembershipService membershipService, IPushUserEndpointsRepository pushUserEndpointsRepository)
{
if ((context == null) && (HttpContext.Current == null))
{
throw new ArgumentNullException("context", "Context cannot be null if not running on a Web context.");
}
if (pushUserEndpointsRepository == null)
{
throw new ArgumentNullException("pushUserEndpointsRepository", "PushUserEndpoints repository cannot be null.");
}
if (formsAuth == null)
{
throw new ArgumentNullException("formsAuth", "Forms Authentication service cannot be null.");
}
if (membershipService == null)
{
throw new ArgumentNullException("membershipService", "Membership service cannot be null.");
}
this.webOperationContext = webOperationContext;
this.context = context;
this.pushUserEndpointsRepository = pushUserEndpointsRepository;
this.formsAuth = formsAuth;
this.membershipService = membershipService;
}
示例3: AccountController
public AccountController(ICustomerService customerService, IFormsAuthentication formsAuthentication,
IMembershipService membershipService)
{
_customerService = customerService;
_formsAuthentication = formsAuthentication;
_membershipService = membershipService;
}
示例4: OAuthAuthenticationPortal
public OAuthAuthenticationPortal(IUserService userService, IFormsAuthentication formsAuthentication)
: base(userService, formsAuthentication)
{
Ensure.That(() => userService).IsNotNull();
this.userService = userService;
}
示例5: OrdersController
/// <summary>
/// Initializes a new instance of the <see cref="OrdersController"/> class.
/// Order controller constructor.
/// </summary>
/// <param name="orderService">
/// The order service.
/// </param>
/// <param name="formsAuthentication">
/// The form authentication.
/// </param>
public OrdersController(
IOrderService orderService,
IFormsAuthentication formsAuthentication)
: base(formsAuthentication)
{
this.orderService = orderService;
}
示例6: OrderController
public OrderController(ICustomerService customerService, IOrderService orderService, IFormsAuthentication formsAuthentication, ICookieStorageService cookieStorageService)
: base(cookieStorageService)
{
_customerService = customerService;
_orderService = orderService;
_formsAuthentication = formsAuthentication;
}
示例7: AccountController
public AccountController(IAccountTasks accountTasks, IUserMailer userMailer,
IFormsAuthentication formsAuthentication)
{
_accountTasks = accountTasks;
_userMailer = userMailer;
_formsAuthentication = formsAuthentication;
}
示例8: ItemsController
/// <summary>
/// Initializes a new instance of the <see cref="ItemsController"/> class.
/// </summary>
/// <param name="itemsService">
/// The items Service.
/// </param>
/// <param name="formsAuthentication">
/// The forms authentication.
/// </param>
public ItemsController(
IItemsService itemsService,
IFormsAuthentication formsAuthentication)
: base(formsAuthentication)
{
this.itemsService = itemsService;
}
示例9: AccountController
public AccountController(IKcsarContext db, AccountsService accountsSvc, IFormsAuthentication formsAuth, ILog log, MembershipProvider membership)
: base(db, log)
{
this.membership = membership;
this.accountsService = accountsSvc;
this.formsAuth = formsAuth;
}
示例10: AuthController
public AuthController(IOpenIdRelyingParty relyingParty, IFormsAuthentication formsAuthentication,
IUserServices userServices)
{
this.relyingParty = relyingParty;
this.formsAuthentication = formsAuthentication;
this.userServices = userServices;
}
示例11: SessionController
public SessionController(IFormsAuthentication formsAuthentication,
IAuthenticationService authenticationService, IProductoService productoService)
{
this.formsAuthentication = formsAuthentication;
this.authenticationService = authenticationService;
this.productoService = productoService;
}
示例12: UploadBotController
public UploadBotController(ITeamManagementCommands teamCommands, IFormsAuthentication formsAuthentication, IConfigurationRepository configurationRepository, MatchStarter matchStarter)
{
_teamCommands = teamCommands;
_formsAuthentication = formsAuthentication;
_configurationRepository = configurationRepository;
_matchStarter = matchStarter;
}
示例13: LoginController
/// <summary>
/// Constructor
/// </summary>
/// <param name="authenticationService">The <see cref="AuthenticationService"/></param>
/// <param name="pluginsService">The <see cref="Core.Services.PluginsService"/></param>
/// <param name="cultureService">The <see cref="Core.Services.CultureService"/></param>
/// <param name="formsAuthentication">The <see cref="FormsAuthentication"/> wrapper</param>
public LoginController(IAuthenticationService authenticationService, IPluginsService pluginsService, ICultureService cultureService, IFormsAuthentication formsAuthentication)
{
this.authenticationService = authenticationService;
this.pluginsService = pluginsService;
this.cultureService = cultureService;
this.formsAuthentication = formsAuthentication;
}
示例14: PackagesController
/// <summary>
/// Initializes a new instance of the <see cref="PackagesController"/> class.
/// </summary>
/// <param name="packagesService">
/// The packages service.
/// </param>
/// <param name="formsAuthentication">
/// The forms authentication.
/// </param>
public PackagesController(
IPackagesService packagesService,
IFormsAuthentication formsAuthentication)
: base(formsAuthentication)
{
this.packagesService = packagesService;
}
示例15: AccountController
public AccountController(IFormsAuthentication formsAuthentication,
IUserRepository users, ICommandSender cmds)
{
_formsAuthentication = formsAuthentication;
_users = users;
_cmds = cmds;
}