本文整理汇总了C#中IEncryptionService类的典型用法代码示例。如果您正苦于以下问题:C# IEncryptionService类的具体用法?C# IEncryptionService怎么用?C# IEncryptionService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IEncryptionService类属于命名空间,在下文中一共展示了IEncryptionService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: EncodePassword
public static string EncodePassword(string value, IEncryptionService encryptionService)
{
return
string.IsNullOrWhiteSpace(value) ?
string.Empty :
Convert.ToBase64String(encryptionService.Encode(Encoding.UTF8.GetBytes(value)));
}
示例3: DoubanOAuthService
public DoubanOAuthService(IEncryptionService oauthHelper, IQuickLogOnService quickLogOnService)
{
_quickLogOnService = quickLogOnService;
_oauthHelper = oauthHelper;
T = NullLocalizer.Instance;
Logger = NullLogger.Instance;
}
示例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;
}
示例5: IdentityService
public IdentityService(ILearnWithQBUow uow, IEncryptionService encryptionService, ISessionService sessionService, ICacheProvider cacheProvider)
: base(cacheProvider)
{
this.uow = uow;
this.sessionService = sessionService;
this.encryptionService = encryptionService;
}
示例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;
}
示例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;
}
示例8: AuthenticationService
public AuthenticationService(ITenantRepository tenantRepository, IUserRepository userRepository,
IEncryptionService encryptionService)
{
this._tenantRepository = tenantRepository;
this._userRepository = userRepository;
this._encryptionService = encryptionService;
}
示例9: TwitterOAuthService
public TwitterOAuthService(IEncryptionService oauthHelper, IQuickLogOnService quickLogOnService)
{
T = NullLocalizer.Instance;
Logger = NullLogger.Instance;
_quickLogOnService = quickLogOnService;
_oauthHelper = oauthHelper;
}
示例10: IdentityService
public IdentityService(IWeddingBiddersUow uow, IEncryptionService encryptionService, ISessionService sessionService, ICacheProvider cacheProvider)
: base(cacheProvider)
{
this.uow = uow;
this.sessionService = sessionService;
this.encryptionService = encryptionService;
}
示例11: IdentityService
public IdentityService(IVideoOnDemandUow uow, IEncryptionService encryptionService, ISessionService sessionService, ICacheProvider cacheProvider)
: base(cacheProvider)
{
this.uow = uow;
this.sessionService = sessionService;
this.encryptionService = encryptionService;
}
示例12: AuthenticationService
public AuthenticationService(IRequest request, IOutputWriter outputWriter, BasicAuthenticationCookieConfiguration basicAuthenticationCookieConfiguration, IEncryptionService encryptionService)
{
this.request = request;
this.outputWriter = outputWriter;
this.basicAuthenticationCookieConfiguration = basicAuthenticationCookieConfiguration;
this.encryptionService = encryptionService;
}
示例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);
}
示例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;
}
示例15: AuthenticationService
public AuthenticationService(IRepository<MembraneUser> userRepository, IEncryptionService encryptionService)
{
GuardAgainst.ArgumentNull(userRepository, "userRepository");
GuardAgainst.ArgumentNull(encryptionService, "encryptionService");
this.userRepository = userRepository;
this.encryptionService = encryptionService;
}