/// <summary> /// Creates a new ServerAccess. /// </summary> public ServerAccess( IHttpClient client, IServerSettings settings ) { _client = client; _settings = settings; _headers = new Dictionary<string, string>(); UpdateSessionHeader(); _settings.ListenToProperty( x => x.Session, UpdateSessionHeader ); }
/// <summary> /// Initializes a new instance of the <see cref="ServerContext" /> class. /// </summary> /// <param name="settings">The settings.</param> /// <param name="helper">The helper.</param> /// <param name="client">The client.</param> /// <exception cref="ArgumentNullException"></exception> public ServerContext(IServerSettings settings, ICreateHelper helper, IHttpClient client) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } if (helper == null) { throw new ArgumentNullException(nameof(helper)); } if (client == null) { throw new ArgumentNullException(nameof(client)); } this.authzCookieName = "authz"; this.settings = settings; this.helper = helper; this.client = client; }
public FolderRepository(IDatabase database, IServerSettings serverSettings, ISongRepository songRepository, IVideoRepository videoRepository) { if (database == null) { throw new ArgumentNullException("database"); } if (serverSettings == null) { throw new ArgumentNullException("serverSettings"); } if (songRepository == null) { throw new ArgumentNullException("songRepository"); } if (videoRepository == null) { throw new ArgumentNullException("videoRepository"); } this.database = database; this.serverSettings = serverSettings; this.songRepository = songRepository; this.videoRepository = videoRepository; }
/// <summary> /// Creates a new MoodleDownloader. /// </summary> public MoodleDownloader( IServerSettings serverSettings ) { _serverSettings = serverSettings; }
private void DefaultClientHook(HttpClient client, IServerSettings settings) { }
private void DefaultHandlerHook(HttpClientHandler handler, IServerSettings settings) { }
public CustomCredentialsAuthProvider(ICommandBus commandBus, IAccountDao dao, IPasswordService passwordService, IServerSettings serverSettings) { _passwordService = passwordService; _commandBus = commandBus; _serverSettings = serverSettings; Dao = dao; }
/// <summary> /// Creates a new MainViewModel. /// </summary> public MainViewModel(IDataCache cache, INavigationService navigationService, IFoodService menuService, ICredentialsStorage credentials, IPluginSettings settings, IServerSettings serverSettings) : base(cache) { _navigationService = navigationService; _menuService = menuService; _credentials = credentials; _mealDate = DateTime.Now; _mealTime = GetMealTime(_mealDate.Hour); AreRatingsEnabled = serverSettings.Configuration.AreFoodRatingsEnabled != 0; Settings = settings; Settings.PropertyChanged += (_, __) => { if (_fullMenu != null) { Menu = FilterMenu(_fullMenu); AllResultsFilteredOut = Menu.Length == 0 && _fullMenu.Length > 0; } }; }
public AccountOrderListService(IOrderDao orderDao, IOrderRatingsDao orderRatingsDao, IServerSettings serverSettings) { _orderDao = orderDao; _orderRatingsDao = orderRatingsDao; _serverSettings = serverSettings; }
public TwilioService(ILogger logger, IServerSettings serverSettings) { _logger = logger; _serverSettings = serverSettings; }
/// <summary> /// Initializes a new instance of the <see cref="ServerContext"/> class. /// </summary> /// <param name="settings">The settings.</param> /// <param name="helper">The helper.</param> public ServerContext(IServerSettings settings, ICreateHelper helper) : this(settings, helper, new ServerHttpClient()) { }
public ServerAccess( IHttpClient client, IServerSettings settings, IHttpHeaders headers ) { _client = client; _settings = settings; _headers = headers; }
public CmtPaymentPairingService(IOrderDao orderDao, IAccountDao accountDao, ICreditCardDao creditCardDao, ILogger logger, ICommandBus commandBus, IServerSettings serverSettings) { _orderDao = orderDao; _accountDao = accountDao; _creditCardDao = creditCardDao; _logger = logger; _commandBus = commandBus; _serverSettings = serverSettings; }
public ConfigurationResetService(ICacheClient cacheClient, IServerSettings serverSettings) { _cacheClient = cacheClient; _serverSettings = serverSettings; }
public ConfigService(IHttpContextAccessor httpContextAccessor, IServerSettings settings) { RequestContext = httpContextAccessor.HttpContext.Request; ServerSettings = settings; }
public PairingService(ICommandBus commandBus, IIbsOrderService ibs, IOrderDao orderDao, IServerSettings serverSettings) { _commandBus = commandBus; _ibs = ibs; _orderDao = orderDao; _resources = new Resources.Resources(serverSettings); }
public ExclusionsService(IServerSettings serverSettings, ICommandBus commandBus, ICacheClient cacheClient) { _serverSettings = serverSettings; _commandBus = commandBus; _cacheClient = cacheClient; }
public OrderPaymentManager(IOrderDao dao, IOrderPaymentDao paymentDao, IAccountDao accountDao, IOrderDao orderDao, ICommandBus commandBus, ICreditCardDao creditCardDao, IIbsOrderService ibs, IServerSettings serverSettings, IPaymentService paymentService, IFeeService feeService, ILogger logger) { _accountDao = accountDao; _orderDao = orderDao; _commandBus = commandBus; _dao = dao; _paymentDao = paymentDao; _creditCardDao = creditCardDao; _ibs = ibs; _serverSettings = serverSettings; _paymentService = paymentService; _feeService = feeService; _logger = logger; }
public BraintreeClientPaymentService(IServerSettings serverSettings) { BraintreeGateway = GetBraintreeGateway(serverSettings.GetPaymentSettings().BraintreeServerSettings); }
public FileUploader( IServerSettings settings, IHttpHeaders headers ) { _settings = settings; _headers = headers; }
public DefaultGeoLocationService(IServerSettings serverSettings) { _serverSettings = serverSettings; }