public OrderService( ISqlService sqlService, ILogger <OrderService> logger) { _sqlService = sqlService; _logger = logger; }
public SongDownloadService(ICollectionService service, ISqlService sqlService, CoreDispatcher dispatcher) { this.service = service; this.sqlService = sqlService; this.dispatcher = dispatcher; ActiveDownloads = new ObservableCollection <Song>(); }
/// <summary> /// Initializes a new instance of the <see cref="BulletinService" /> class. /// </summary> /// <param name="sqlService">Sql service for interacting with a Sql database.</param> /// <param name="configurationManager">Configuration manager for interacting with the Web configuration.</param> /// <param name="client">Client for interacting with WCF services.</param> /// <param name="cacheService">Cache service for interacting with cached data.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="sqlService" /> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException">Thrown if <paramref name="configurationManager" /> is <c>null</c>.</exception> public BulletinService(IClient client, IConfigurationManager configurationManager, ICacheService cacheService, ISqlService sqlService) : base(client, cacheService) { if (sqlService == null) { throw new ArgumentNullException("sqlService"); } SqlService = sqlService; if (configurationManager == null) { throw new ArgumentNullException("configurationManager"); } ConfigurationManager = configurationManager; String timeoutInMinutesStringValue = configurationManager.AppSettings["BulletinsCacheTimeoutInMinutes"]; Int32 timeoutInMinutes; const Int32 defaultTimeoutInMinutes = 5; defaultTimeSpan = !String.IsNullOrEmpty(timeoutInMinutesStringValue) && Int32.TryParse(timeoutInMinutesStringValue, out timeoutInMinutes) ? new TimeSpan(0, timeoutInMinutes, 0) : new TimeSpan(0, defaultTimeoutInMinutes, 0); SiteID = GetSiteID(); }
public AssetViewModel(IEmailService emailService, ISqlService sqlService, IDistributedCacheWithSqlService cacheService, IHttpContextAccessor httpContextAccessor) { this._emailSender = emailService; _sqlService = sqlService as SqlService; _cacheService = cacheService as DistributedCacheWithSql; _httpContextAccessor = httpContextAccessor; }
public EtlService(IAmazonService amazonService, ICsvService csvService, IFtpService ftpService, ISqlService sqlService) { _amazonService = amazonService; _csvService = csvService; _ftpService = ftpService; _sqlService = sqlService; }
public InventoryService( ISqlService sqlService, IIoTCentralService ioTCentralService) { _sqlService = sqlService; _ioTCentralService = ioTCentralService; }
public WorkflowOrganizationUnitAssignmentRepository(ISqlService sqlService, ISqlColumnService sqlColumnService, ICacheService cacheService , IWorkflowOrganizationUnitUserAssignmentRepository workflowOrganizationUnitUserAssignmentRepository) : base(sqlService, sqlColumnService, cacheService) { this.workflowOrganizationUnitUserAssignmentRepository = workflowOrganizationUnitUserAssignmentRepository; UseCache = true; this.sqlService = sqlService; }
public SongDownloadService(ICollectionService service, ISqlService sqlService, CoreDispatcher dispatcher) { this.service = service; this.sqlService = sqlService; this.dispatcher = dispatcher; ActiveDownloads = new ObservableCollection<Song>(); }
public CollectionService( ISqlService sqlService, ISqlService bgSqlService, IAppSettingsHelper appSettingsHelper, IDispatcherHelper dispatcher, IBitmapFactory bitmapFactory, IBitmapImage missingArtwork, string localFilePrefix, string artworkFilePath, string artistArtworkFilePath) { _bgSqlService = bgSqlService; _sqlService = sqlService; _dispatcher = dispatcher; _appSettingsHelper = appSettingsHelper; _bitmapFactory = bitmapFactory; _missingArtwork = missingArtwork; _localFilePrefix = localFilePrefix; _artworkFilePath = artworkFilePath; _artistArtworkFilePath = artistArtworkFilePath; Songs = new OptimizedObservableCollection <Song>(); Artists = new OptimizedObservableCollection <Artist>(); Albums = new OptimizedObservableCollection <Album>(); Playlists = new OptimizedObservableCollection <Playlist>(); PlaybackQueue = new OptimizedObservableCollection <QueueSong>(); ShufflePlaybackQueue = new OptimizedObservableCollection <QueueSong>(); }
/// <summary> /// Initializes a new instance of the <see cref="EcommerceViewModel" /> class. /// </summary> /// <param name="fromTime">From time.</param> public EcommerceViewModel(DateTime fromTime) { localSql = new SqlService(); DashboardViewModel = new EcommerceDashboardViewModel(localSql, fromTime); DashboardViewModel.ViewRecordsClicked += DashboardViewModel_ViewRecordsClicked; SelectedTab = 0; }
public CollectionCommandHelper(ICollectionService service, ISqlService sqlService, ISongDownloadService downloadService) { _service = service; _sqlService = sqlService; _downloadService = downloadService; CreateCommand(); }
public CollectionService( ISqlService sqlService, ISqlService bgSqlService, IAppSettingsHelper appSettingsHelper, IDispatcherHelper dispatcher, IBitmapFactory bitmapFactory, IBitmapImage missingArtwork, string localFilePrefix, string artworkFilePath, string artistArtworkFilePath) { _bgSqlService = bgSqlService; _sqlService = sqlService; _dispatcher = dispatcher; _appSettingsHelper = appSettingsHelper; _bitmapFactory = bitmapFactory; _missingArtwork = missingArtwork; _localFilePrefix = localFilePrefix; _artworkFilePath = artworkFilePath; _artistArtworkFilePath = artistArtworkFilePath; Songs = new OptimizedObservableCollection<Song>(); Artists = new OptimizedObservableCollection<Artist>(); Albums = new OptimizedObservableCollection<Album>(); Playlists = new OptimizedObservableCollection<Playlist>(); PlaybackQueue = new OptimizedObservableCollection<QueueSong>(); ShufflePlaybackQueue = new OptimizedObservableCollection<QueueSong>(); }
public CastleService(ICoreConfig config, ILogger logger, ISqlService sqlService, IConfiguration settings) { this.config = config; this.logger = logger; this.sqlService = sqlService; this.settings = settings; }
/// <summary> /// Initialize repository /// </summary> /// <param name="sqlService"></param> /// <param name="sqlColumnService"></param> /// <param name="cacheService"></param> public FileStructureDocumentPathTrackingRepository(ISqlService sqlService, ISqlColumnService sqlColumnService, ICacheService cacheService) : base(sqlService, sqlColumnService, cacheService) { jsonSettings = new JsonSerializerSettings { PreserveReferencesHandling = PreserveReferencesHandling.All, TypeNameHandling = TypeNameHandling.Auto }; }
public CreateTableViewModel(string databasePath, ISqlService sqliteService) { _databasePath = databasePath; _sqliteService = sqliteService; CancelCommand = new RelayCommand(OnCancel); CommitCommand = new RelayCommand(OnCommit, CanCommit); TableColumns.CollectionChanged += TableColumnsChanged; }
public CreateTableDialog(string databasePath, ISqlService sqlService) { InitializeComponent(); DatabasePath = databasePath; _createTableViewModel = new CreateTableViewModel(databasePath, sqlService); _createTableViewModel.TableCreated += OnTableCreated; DataContext = _createTableViewModel; }
/// <summary> /// Initialize repository /// </summary> /// <param name="sqlService"></param> /// <param name="sqlColumnService"></param> /// <param name="cacheService"></param> public FileStructureRepository(ISqlService sqlService, ISqlColumnService sqlColumnService, ICacheService cacheService) : base(sqlService, sqlColumnService, cacheService) { this.sqlService = sqlService; jsonSettings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Auto }; }
public StoreController(ISqlService db, IHttpContextAccessor httpContextAccessor, UserManager <ApplicationUser> userManager) { _db = db; var user = httpContextAccessor.HttpContext.User; _userId = userManager.GetUserId(user); }
/// <summary> /// Initializes a new instance of the <see cref="EcommerceViewModel"/> class. /// </summary> /// <param name="loadTab">The load tab.</param> public EcommerceViewModel(int loadTab) { localSql = new SqlService(); SelectedTab = loadTab; if (loadTab == 0) { LoadData(); } }
public UserRepository( ILogger <UserRepository> logger, ISqlService sqlService, IAuthenticatedService authenticatedService) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _sqlService = sqlService ?? throw new ArgumentNullException(nameof(sqlService)); _authenticatedService = authenticatedService ?? throw new ArgumentNullException(nameof(authenticatedService)); }
public DatabaseNavigationViewModel(ISqlService sqlService) { _sqliteService = sqlService; AddDatabaseCommand = new RelayCommand <ObservableTreeItem>(OnNewDatabaseRequested); AddTableCommand = new RelayCommand <ObservableTreeItem>(OnNewTableRequested); ExpandTreeItemCommand = new RelayCommand <ObservableTreeItem>(OnTreeItemExpanded); NewQueryCommand = new RelayCommand <ObservableTreeItem>(OnNewQueryRequested); SearchFolderCommand = new RelayCommand(OnSearchFolderRequested); }
public BillFacadeSteps() { var service = Dependencies.GetDependencies() .AddSingleton(x => Substitute.For <ISqlService>()) .BuildServiceProvider(); _sqlService = service.GetRequiredService <ISqlService>(); _billFacade = service.GetRequiredService <IBillFacade>(); }
public CollectionService(ISqlService sqlService, CoreDispatcher dispatcher) { _sqlService = sqlService; _dispatcher = dispatcher; Songs = new ObservableCollection <Song>(); Artists = new ObservableCollection <Artist>(); Albums = new ObservableCollection <Album>(); Playlists = new ObservableCollection <Playlist>(); PlaybackQueue = new ObservableCollection <QueueSong>(); }
public DashboardService(ISqlService sqlService, IClient client, ICacheService cacheService) : base(client, cacheService) { if (sqlService == null) { throw new ArgumentNullException("sqlService"); } SqlService = sqlService; }
public CollectionCommandHelper( ICollectionService service, ISqlService sqlService, ISongDownloadService downloadService) { _service = service; _sqlService = sqlService; _downloadService = downloadService; CreateCommand(); }
public StarragPageModel( IEmailService emailService, ISqlService sqlService, IDistributedCacheWithSqlService cacheService, IHttpContextAccessor httpContextAccessor) { _emailSender = emailService; _sqlService = sqlService as SqlService; _cacheService = cacheService as DistributedCacheWithSql; _httpContextAccessor = httpContextAccessor; }
private void btnServerConnection_Click(object sender, RoutedEventArgs e) { var con = new ConnectionWindow(this.Sql); con.Owner = this; if (con.ShowDialog() == true) { this.Sql = con.Sql; this.txtStatus.Text = this.Sql.GetDisplayConnection; } }
public ServicoFuncionarioService( IValidator <ServicoFuncionario> servicoFuncionarioValidator, ISqlService sqlService, IValidationService validationService, IAuthenticatedService authenticatedService, ILogger <ServicoFuncionarioService> logger) { _servicoFuncionarioValidator = servicoFuncionarioValidator; _sqlService = sqlService; _validationService = validationService; _authenticatedService = authenticatedService; _logger = logger; }
public EnderecosFuncionarioService( IValidator <EnderecoFuncionario> enderecoFuncionarioValidator, ISqlService sqlService, IValidationService validationService, IAuthenticatedService authenticatedService, ILogger <EnderecosFuncionarioService> logger) { _enderecoFuncionarioValidator = enderecoFuncionarioValidator; _sqlService = sqlService; _validationService = validationService; _authenticatedService = authenticatedService; _logger = logger; }
public EnderecosClienteService( IValidator <EnderecoCliente> enderecoClienteValidator, ISqlService sqlService, IValidationService validationService, IAuthenticatedService authenticatedService, ILogger <EnderecosClienteService> logger) { _enderecoClienteValidator = enderecoClienteValidator; _sqlService = sqlService; _validationService = validationService; _authenticatedService = authenticatedService; _logger = logger; }
public CloudSyncService( MobileServiceClient mobileServiceClient, ICollectionService collectionService, IAppSettingsHelper appSettingsHelper, ISqlService sqlService, IDispatcherHelper dispatcherHelper) { _mobileServiceClient = mobileServiceClient; _collectionService = collectionService; _appSettingsHelper = appSettingsHelper; _sqlService = sqlService; _dispatcherHelper = dispatcherHelper; }
public VeiculoService( IValidator <Veiculo> veiculoValidator, ISqlService sqlService, IValidationService validationService, IAuthenticatedService authenticatedService, ILogger <VeiculoService> logger) { _veiculoValidator = veiculoValidator; _sqlService = sqlService; _validationService = validationService; _authenticatedService = authenticatedService; _logger = logger; }
public ContatosClienteService( IValidator <ContatoCliente> contatoClienteValidator, ISqlService sqlService, IValidationService validationService, IAuthenticatedService authenticatedService, ILogger <ContatosClienteService> logger) { _contatoClienteValidator = contatoClienteValidator; _sqlService = sqlService; _validationService = validationService; _authenticatedService = authenticatedService; _logger = logger; }
public ICollectionService CreateCollectionService( ISqlService collectionSqlService, ISqlService playerSqlService) { return new CollectionService( collectionSqlService, playerSqlService, this.appSettingsHelper, this.dispatcher, this.bitmapFactory, AppConstant.MissingArtworkImage, #if __ANDROID__ "file://" + _folderPath #elif WINRT AppConstant.LocalStorageAppPath #endif , AppConstant.ArtworkPath, AppConstant.ArtistsArtworkPath); }
public IssueManager(string databaseConnection, string user, string pass) { _databaseConnection = string.Format("Data Source={0}", databaseConnection); _database = new SqLiteService(_databaseConnection); }