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

C# IEncryptionService类代码示例

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

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



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

示例1: SessionFactoryHolderFactory

        public SessionFactoryHolderFactory(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration,
            Func<IEnumerable<ISessionConfigurationEvents>> configurers,
            IRepository<ConnectionsRecord> connectionsRecordRepository,
            IEncryptionService encryptionService,
            ICacheManager cacheManager)
        {
            _shellSettings = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment = hostEnvironment;
            _cacheConfiguration = cacheConfiguration;
            _configurers = configurers;
            _connectionsRecordRepository = connectionsRecordRepository;
            _encryptionService = encryptionService;
            _cacheManager = cacheManager;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
开发者ID:SmartFire,项目名称:Orchard.Platform-Modules,代码行数:28,代码来源:SessionFactoryHolderFactory.cs


示例2: EncodePassword

 public static string EncodePassword(string value, IEncryptionService encryptionService)
 {
     return
         string.IsNullOrWhiteSpace(value) ?
         string.Empty :
         Convert.ToBase64String(encryptionService.Encode(Encoding.UTF8.GetBytes(value)));
 }
开发者ID:kubo08,项目名称:Orchard,代码行数:7,代码来源:PasswordUtils.cs


示例3: DoubanOAuthService

 public DoubanOAuthService(IEncryptionService oauthHelper, IQuickLogOnService quickLogOnService)
 {
     _quickLogOnService = quickLogOnService;
     _oauthHelper = oauthHelper;
     T = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
开发者ID:jksharp,项目名称:Orchard.OAuth.China,代码行数:7,代码来源:DoubanOAuthService.cs


示例4: SettingController

 public SettingController(ISettingService settingService,
     ICountryService countryService, IStateProvinceService stateProvinceService,
     IAddressService addressService, ITaxCategoryService taxCategoryService,
     ICurrencyService currencyService, IPictureService pictureService, 
     ILocalizationService localizationService, IDateTimeHelper dateTimeHelper,
     IOrderService orderService, IEncryptionService encryptionService,
     IThemeProvider themeProvider, ICustomerService customerService, 
     ICustomerActivityService customerActivityService, IPermissionService permissionService,
     IWebHelper webHelper, IFulltextService fulltextService, 
     IMaintenanceService maintenanceService, IStoreService storeService,
     IWorkContext workContext, IGenericAttributeService genericAttributeService)
 {
     this._settingService = settingService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._addressService = addressService;
     this._taxCategoryService = taxCategoryService;
     this._currencyService = currencyService;
     this._pictureService = pictureService;
     this._localizationService = localizationService;
     this._dateTimeHelper = dateTimeHelper;
     this._orderService = orderService;
     this._encryptionService = encryptionService;
     this._themeProvider = themeProvider;
     this._customerService = customerService;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._webHelper = webHelper;
     this._fulltextService = fulltextService;
     this._maintenanceService = maintenanceService;
     this._storeService = storeService;
     this._workContext = workContext;
     this._genericAttributeService = genericAttributeService;
 }
开发者ID:haithemChkel,项目名称:nopCommerce_33,代码行数:34,代码来源:SettingController.cs


示例5: IdentityService

 public IdentityService(ILearnWithQBUow uow, IEncryptionService encryptionService, ISessionService sessionService, ICacheProvider cacheProvider)
     : base(cacheProvider)
 {
     this.uow = uow;
     this.sessionService = sessionService;
     this.encryptionService = encryptionService;
 }
开发者ID:QuinntyneBrown,项目名称:learn-with-qb,代码行数:7,代码来源:IdentityService.cs


示例6: CustomerRegistrationService

 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="customerService">Customer service</param>
 /// <param name="encryptionService">Encryption service</param>
 public CustomerRegistrationService(ICustomerService customerService,
     IEncryptionService encryptionService
     )
 {
     this._customerService = customerService;
     this._encryptionService = encryptionService;
 }
开发者ID:SeptemberWind,项目名称:AlvisFrameworkProject,代码行数:12,代码来源:CustomerRegistrationService.cs


示例7: AuthenticationController

 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationController"/> class.
 /// </summary>
 /// <param name="userDataMapper">
 /// The user Data Mapper.
 /// </param>
 /// <param name="encryptionService">
 /// The encryption service.
 /// </param>
 public AuthenticationController(
     IUserDataMapper userDataMapper, 
     IEncryptionService encryptionService)
 {
     _userDataMapper = userDataMapper;
     _encryptionService = encryptionService;
 }
开发者ID:haiconmot,项目名称:SmsQuiz,代码行数:16,代码来源:AuthenticationController.cs


示例8: AuthenticationService

 public AuthenticationService(ITenantRepository tenantRepository, IUserRepository userRepository,
     IEncryptionService encryptionService)
 {
     this._tenantRepository = tenantRepository;
     this._userRepository = userRepository;
     this._encryptionService = encryptionService;
 }
开发者ID:ZhangColin,项目名称:IDDD_Samples_by_Colin,代码行数:7,代码来源:AuthenticationService.cs


示例9: TwitterOAuthService

 public TwitterOAuthService(IEncryptionService oauthHelper, IQuickLogOnService quickLogOnService)
 {
     T = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
     _quickLogOnService = quickLogOnService;
     _oauthHelper = oauthHelper;
 }
开发者ID:omidam81,项目名称:Ver1.0,代码行数:7,代码来源:TwitterOAuthService.cs


示例10: IdentityService

 public IdentityService(IWeddingBiddersUow uow, IEncryptionService encryptionService, ISessionService sessionService, ICacheProvider cacheProvider)
     : base(cacheProvider)
 {
     this.uow = uow;
     this.sessionService = sessionService;
     this.encryptionService = encryptionService;
 }
开发者ID:QuinntyneBrown,项目名称:wedding-bidders,代码行数:7,代码来源:IdentityService.cs


示例11: IdentityService

 public IdentityService(IVideoOnDemandUow uow, IEncryptionService encryptionService, ISessionService sessionService, ICacheProvider cacheProvider)
     : base(cacheProvider)
 {
     this.uow = uow;
     this.sessionService = sessionService;
     this.encryptionService = encryptionService;
 }
开发者ID:QuinntyneBrown,项目名称:VideoOnDemandApi,代码行数:7,代码来源:IdentityService.cs


示例12: AuthenticationService

 public AuthenticationService(IRequest request, IOutputWriter outputWriter, BasicAuthenticationCookieConfiguration basicAuthenticationCookieConfiguration, IEncryptionService encryptionService)
 {
     this.request = request;
     this.outputWriter = outputWriter;
     this.basicAuthenticationCookieConfiguration = basicAuthenticationCookieConfiguration;
     this.encryptionService = encryptionService;
 }
开发者ID:UStack,项目名称:UWeb,代码行数:7,代码来源:AuthenticationService.cs


示例13: SmtpSettingsPartHandler

        public SmtpSettingsPartHandler(IRepository<SmtpSettingsPartRecord> repository, IEncryptionService encryptionService) {
            T = NullLocalizer.Instance;
            _encryptionService = encryptionService;
            Filters.Add(new ActivatingFilter<SmtpSettingsPart>("Site"));
            Filters.Add(StorageFilter.For(repository));

            OnLoaded<SmtpSettingsPart>(LazyLoadHandlers);
        }
开发者ID:juaqaai,项目名称:CompanyGroup,代码行数:8,代码来源:SmtpSettingsPartHandler.cs


示例14: MembershipService

 public MembershipService(IOrchardServices orchardServices, IMessageManager messageManager, IEnumerable<IUserEventHandler> userEventHandlers, IClock clock, IEncryptionService encryptionService) {
     _orchardServices = orchardServices;
     _messageManager = messageManager;
     _userEventHandlers = userEventHandlers;
     _encryptionService = encryptionService;
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
开发者ID:rupertwhitlock,项目名称:IncreasinglyAbsorbing,代码行数:8,代码来源:MembershipService.cs


示例15: AuthenticationService

        public AuthenticationService(IRepository<MembraneUser> userRepository, IEncryptionService encryptionService)
        {
            GuardAgainst.ArgumentNull(userRepository, "userRepository");
            GuardAgainst.ArgumentNull(encryptionService, "encryptionService");

            this.userRepository = userRepository;
            this.encryptionService = encryptionService;
        }
开发者ID:pollingj,项目名称:Membrane-CMS,代码行数:8,代码来源:AuthenticationService.cs


示例16: SetUp

        public override void SetUp()
        {
            base.SetUp();

            userRepository = mockery.DynamicMock<IRepository<MembraneUser>>();
            encryptionService = mockery.DynamicMock<IEncryptionService>();
            service = new AuthenticationService(userRepository, encryptionService);
        }
开发者ID:pollingj,项目名称:Membrane-CMS,代码行数:8,代码来源:AuthenticationServiceFixture.cs


示例17: UserService

 public UserService(IContentManager contentManager, IMembershipService membershipService, IClock clock, IMessageManager messageManager, ShellSettings shellSettings, IEncryptionService encryptionService) {
     _contentManager = contentManager;
     _membershipService = membershipService;
     _clock = clock;
     _messageManager = messageManager;
     _encryptionService = encryptionService;
     Logger = NullLogger.Instance;
 }
开发者ID:kerrjon,项目名称:MNFathers,代码行数:8,代码来源:UserService.cs


示例18: MembershipService

 public MembershipService(IUserRepository userRepository, IRoleRepository roleRepository,
 IUserRoleRepository userRoleRepository, IEncryptionService encryptionService)
 {
     _userRepository = userRepository;
     _roleRepository = roleRepository;
     _userRoleRepository = userRoleRepository;
     _encryptionService = encryptionService;
 }
开发者ID:bensgroi,项目名称:PhotoGallery,代码行数:8,代码来源:MembershipService.cs


示例19: RegistrationService

   public RegistrationService(IUserService userService, IAuthenticationService authService,
 IRoleService roleService, IEncryptionService encryptionService)
   {
       _userService = userService;
         _authService = authService;
         _roleService = roleService;
         _encryptionService = encryptionService;
   }
开发者ID:skyfighter007,项目名称:Britespokes-Dev,代码行数:8,代码来源:RegistrationService.cs


示例20: MembershipService

 public MembershipService(IEntityBaseRepository<User> userRepository, IEntityBaseRepository<Role> roleRepository, IEntityBaseRepository<UserRole> userRoleRepository, IEncryptionService encryptionService, UnitOfWork unitOfWork)
 {
     _userRepository = userRepository;
     _roleRepository = roleRepository;
     _userRoleRepository = userRoleRepository;
     _encryptionService = encryptionService;
     _unitOfWork = unitOfWork;
 }
开发者ID:CarlosSaraiva,项目名称:HomeCinema,代码行数:8,代码来源:MembershipService.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IEndpoint类代码示例发布时间:2022-05-24
下一篇:
C# IEncoder类代码示例发布时间: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