public static void InjectDependecies(IWebUIFactory webUIFactory, LoggerBase logger, PlatformInformationBase platformInformation, ICryptographyHelper cryptographyHelper) { WebUIFactory = webUIFactory; Logger = logger; PlatformInformation = platformInformation; CryptographyHelper = cryptographyHelper; }
public CreateNewBusinessHandler( IUnitOfWork unitOfWork, ICryptographyHelper cryptographyHelper) { this.unitOfWork = unitOfWork; this.cryptographyHelper = cryptographyHelper; }
public ConnectorHandler(IUnitOfWork unitOfWork, ICryptographyHelper cryptographyHelper, IOptions <ConfigurationManager> configurationService) { this.unitOfWork = unitOfWork; this.cryptographyHelper = cryptographyHelper; this.configurationService = configurationService; }
public static void InjectDependecies(IWebUIFactory webUIFactory, ITokenCachePlugin tokenCachePlugin, LoggerBase logger, PlatformInformationBase platformInformation, ICryptographyHelper cryptographyHelper) { WebUIFactory = webUIFactory; TokenCachePlugin = tokenCachePlugin; Logger = logger; PlatformInformation = platformInformation; CryptographyHelper = cryptographyHelper; }
public VisaHttpRequestSender(IHttpClientFactory httpClientFactory, IEnumerable <IHttpResponseHandler> httpResponseHandlers, ICryptographyHelper cryptographyHelper, IHttpContextAccessor httpContextAccessor) { _httpClient = httpClientFactory.CreateClient(nameof(VisaHttpRequestSender)); _httpResponseHandlers = httpResponseHandlers; _cryptographyHelper = cryptographyHelper; _httpContextAccessor = httpContextAccessor; }
public VisaAliasService(IHttpRequestSender httpRequestSender, IMapper mapper, IOptions <VisaAliasApiOptions> VisaAliasOptions, ICryptographyHelper cryptographyHelper, IVisaAliasDB visaAliasDB) { _httpRequestSender = httpRequestSender; _mapper = mapper; _VisaAliasOptions = VisaAliasOptions.Value; _cryptographyHelper = cryptographyHelper; _visaAliasDB = visaAliasDB; }
public UserController(ILogger <UserController> logger, IUserRoleRepository userRoleRepository, IUserRepository userRepository, IPractitionerRepository practitionerRepository, ICryptographyHelper cryptographyHelper, IModelValidator <UserModel> validator) { _logger = logger; _userRoleRepository = userRoleRepository; _userRepository = userRepository; _practionerRepository = practitionerRepository; _cryptographyHelper = cryptographyHelper; _validator = validator; }
internal static void InjectDependecies(IWebUIFactory webUIFactory, ITokenCachePlugin tokenCachePlugin, LoggerBase logger, PlatformInformationBase platformInformation, ICryptographyHelper cryptographyHelper, IDeviceAuthHelper deviceAuthHelper, IBrokerHelper brokerHelper) { WebUIFactory = webUIFactory; TokenCachePlugin = tokenCachePlugin; Logger = logger; PlatformInformation = platformInformation; CryptographyHelper = cryptographyHelper; DeviceAuthHelper = deviceAuthHelper; BrokerHelper = brokerHelper; }
public static void InjectDependecies(IWebUIFactory webUIFactory, ITokenCachePlugin tokenCachePlugin, LoggerBase logger, PlatformInformationBase platformInformation, ICryptographyHelper cryptographyHelper, IDeviceAuthHelper deviceAuthHelper, IBrokerHelper brokerHelper, IPlatformParameters platformParameters) { WebUIFactory = webUIFactory; TokenCachePlugin = tokenCachePlugin; Logger = logger; PlatformInformation = platformInformation; CryptographyHelper = cryptographyHelper; DeviceAuthHelper = deviceAuthHelper; BrokerHelper = brokerHelper; DefaultPlatformParameters = platformParameters; }
/// <summary> /// Create a blockchain with custom hash function storing blocks in memory /// </summary> /// <typeparam name="TContent">Type of the content in blockchain</typeparam> /// <typeparam name="THash">Type of the hash used in cryptography helper</typeparam> /// <param name="cryptographyHelper">ICryptographyHelper used to compute hash</param> /// <returns>Instance of a chain containing operations for the blockchain</returns> public static Chain <TContent, THash> Create <TContent, THash>(ICryptographyHelper <THash> cryptographyHelper) { return(Create(new MemoryBlockStore <TContent, THash>(), cryptographyHelper)); }
/// <summary> /// Create a blockchain with custom store and hash function /// </summary> /// <typeparam name="TContent">Type of the content in blockchain</typeparam> /// <typeparam name="THash">Type of the hash used in cryptography helper</typeparam> /// <param name="store">IBlockStore instance to store the records</param> /// <param name="cryptographyHelper">ICryptographyHelper used to compute hash</param> /// <returns>Instance of a chain containing operations for the blockchain</returns> public static Chain <TContent, THash> Create <TContent, THash>(IBlockStore <TContent, THash> store, ICryptographyHelper <THash> cryptographyHelper) { return(new Chain <TContent, THash>(store, cryptographyHelper)); }
public HomeController(ILogger <HomeController> logger, IUserRepository userRepository, ICryptographyHelper cryptographyHelper) { _logger = logger; _userRepository = userRepository; _cryptographyHelper = cryptographyHelper; }
public HttpResponseStatusChecker(IProblemDetailsHelper problemDetailsHelper, ICryptographyHelper cryptographyHelper, IOptions <VisaAliasApiOptions> VisaAliasOptions) { _problemDetailsHelper = problemDetailsHelper; _cryptographyHelper = cryptographyHelper; _VisaAliasApiOptions = VisaAliasOptions.Value; }
/// <summary> /// Creates an instance of Chain. Don't use directly use <code>ChainFactory.Create()</code> instead. /// </summary> /// <param name="store">An instance of IBlockStore to store blocks</param> /// <param name="cryptographyHelper">An instance of ICryptographyHelper to compute hash</param> public Chain(IBlockStore <TContent, THash> store, ICryptographyHelper <THash> cryptographyHelper) { this.store = store; this.cryptographyHelper = cryptographyHelper; }
public static Block <TContent, THash> Create <TContent, THash>(TContent content, THash previousHash, ICryptographyHelper <THash> cryptographyHelper) { var res = new Block <TContent, THash>() { Content = content, PreviousHash = previousHash }; var hash = cryptographyHelper.GetHash(res); res.Hash = hash; return(res); }
public AccountModule(ICryptographyHelper cryptographyHelper, IUserRepository userRepository) { _userRepository = userRepository; _cryptographyHelper = cryptographyHelper; }