• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IFormsAuthentication类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IFormsAuthentication的典型用法代码示例。如果您正苦于以下问题:C# IFormsAuthentication类的具体用法?C# IFormsAuthentication怎么用?C# IFormsAuthentication使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IFormsAuthentication类属于命名空间,在下文中一共展示了IFormsAuthentication类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: AccountController

 public AccountController(ICommandBus commandBus, IUserRepository userRepository,
                          IFormsAuthentication formAuthentication)
 {
     this.commandBus = commandBus;
     this.userRepository = userRepository;
     this.formAuthentication = formAuthentication;
 }
开发者ID:luowei98,项目名称:YiHe,代码行数:7,代码来源:AccountController.cs


示例17: AccountController

 // This constructor is not used by the MVC framework but is instead provided for ease
 // of unit testing this type. See the comments at the end of this file for more
 // information.
 public AccountController(IFormsAuthentication formsAuth, IMembershipService service,
     ILogger logger)
 {
     FormsAuth = formsAuth ?? new FormsAuthenticationService();
     MembershipService = service ?? new AccountMembershipService();
     Logger = logger ?? new Logger.Logger();
 }
开发者ID:khoudeshell,项目名称:Triple-Crown-Royal,代码行数:10,代码来源:AccountController.cs


示例18: PublicController

 public PublicController(
     IMiddleManagement MiddleManagement,
     IUserSession UserSession,
     IFormsAuthentication FormAuthentication)
     : base(MiddleManagement, UserSession, FormAuthentication)
 {
 }
开发者ID:nathanpalmer,项目名称:LittleBanking,代码行数:7,代码来源:PublicController.cs


示例19: AccountRegisterController

 public AccountRegisterController(ILocalAuthenticationService authentication_service,
                                  ICommandBus command_bus,
                                  IFormsAuthentication forms_authentication)
 {
     _authentication_service = authentication_service;
     _command_bus = command_bus;
     _forms_authentication = forms_authentication;
 }
开发者ID:elbandit,项目名称:DDD-CQRS-Blackjack,代码行数:8,代码来源:AccountRegisterController.cs


示例20: SessionsController

        public SessionsController(IFormsAuthentication formsAuthentication, IDocumentSession session)
        {
            if (formsAuthentication == null) throw new ArgumentNullException("formsAuthentication");
            if (session == null) throw new ArgumentNullException("session");

            this.formsAuthentication = formsAuthentication;
            this.session = session;
        }
开发者ID:Zero41,项目名称:Moose,代码行数:8,代码来源:SessionsController.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IFormsAuthenticationService类代码示例发布时间:2022-05-24
下一篇:
C# IFormatterLogger类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap