当前位置: 首页>>代码示例>>C#>>正文


C# IFormsAuthentication类代码示例

本文整理汇总了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;
        }
开发者ID:HansKindberg-Lab,项目名称:Mixed-Authentication,代码行数:7,代码来源:AuthenticationPage.cs

示例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;
        }
开发者ID:junleqian,项目名称:Mobile-Restaurant,代码行数:28,代码来源:SamplePushUserRegistrationService.cs

示例3: AccountController

 public AccountController(ICustomerService customerService, IFormsAuthentication formsAuthentication,
     IMembershipService membershipService)
 {
     _customerService = customerService;
     _formsAuthentication = formsAuthentication;
     _membershipService = membershipService;
 }
开发者ID:kduberstein,项目名称:MvcMusicStore,代码行数:7,代码来源:AccountController.cs

示例4: OAuthAuthenticationPortal

        public OAuthAuthenticationPortal(IUserService userService, IFormsAuthentication formsAuthentication)
            : base(userService, formsAuthentication)
        {
            Ensure.That(() => userService).IsNotNull();

            this.userService = userService;
        }
开发者ID:bevacqua,项目名称:bruttissimo,代码行数:7,代码来源:OAuthAuthenticationPortal.cs

示例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;
 }
开发者ID:Naviam,项目名称:Shop-Any-Ware,代码行数:17,代码来源:OrdersController.cs

示例6: OrderController

 public OrderController(ICustomerService customerService, IOrderService orderService, IFormsAuthentication formsAuthentication, ICookieStorageService cookieStorageService)
     : base(cookieStorageService)
 {
     _customerService = customerService;
     _orderService = orderService;
     _formsAuthentication = formsAuthentication;
 }
开发者ID:robertnadar,项目名称:AspNetDesign,代码行数:7,代码来源:OrderController.cs

示例7: AccountController

 public AccountController(IAccountTasks accountTasks, IUserMailer userMailer,
                      IFormsAuthentication formsAuthentication)
 {
     _accountTasks = accountTasks;
       _userMailer = userMailer;
       _formsAuthentication = formsAuthentication;
 }
开发者ID:mikegeorge,项目名称:AppTemplate,代码行数:7,代码来源:AccountController.cs

示例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;
 }
开发者ID:Naviam,项目名称:Shop-Any-Ware,代码行数:16,代码来源:ItemsController.cs

示例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;
 }
开发者ID:mattkur,项目名称:KCSARA-Database,代码行数:7,代码来源:AccountController.cs

示例10: AuthController

 public AuthController(IOpenIdRelyingParty relyingParty, IFormsAuthentication formsAuthentication,
                       IUserServices userServices)
 {
     this.relyingParty = relyingParty;
     this.formsAuthentication = formsAuthentication;
     this.userServices = userServices;
 }
开发者ID:PombeirP,项目名称:silkmod,代码行数:7,代码来源:AuthController.cs

示例11: SessionController

 public SessionController(IFormsAuthentication formsAuthentication, 
     IAuthenticationService authenticationService, IProductoService productoService)
 {
     this.formsAuthentication = formsAuthentication;
     this.authenticationService = authenticationService;
     this.productoService = productoService;
 }
开发者ID:sesquiv,项目名称:siacvu,代码行数:7,代码来源:SessionController.cs

示例12: UploadBotController

 public UploadBotController(ITeamManagementCommands teamCommands, IFormsAuthentication formsAuthentication, IConfigurationRepository configurationRepository, MatchStarter matchStarter)
 {
     _teamCommands = teamCommands;
       _formsAuthentication = formsAuthentication;
       _configurationRepository = configurationRepository;
       _matchStarter = matchStarter;
 }
开发者ID:aaronjensen,项目名称:compete,代码行数:7,代码来源:UploadBotController.cs

示例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;
 }
开发者ID:pollingj,项目名称:Membrane-CMS,代码行数:14,代码来源:LoginController.cs

示例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;
 }
开发者ID:Naviam,项目名称:Shop-Any-Ware,代码行数:16,代码来源:PackagesController.cs

示例15: AccountController

 public AccountController(IFormsAuthentication formsAuthentication, 
     IUserRepository users, ICommandSender cmds)
 {
     _formsAuthentication = formsAuthentication;
     _users = users;
     _cmds = cmds;
 }
开发者ID:wortexx,项目名称:notes,代码行数:7,代码来源:AccountController.cs


注:本文中的IFormsAuthentication类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。