public ExportExcelToDatabaseController(IDepartment department, IFile file, IPendingUpload pendingUpload, ILienTempTable lienTempTable, IStorageServices excelUploadService, IARCommonServices arCommonService) { _department = department; _file = file; _pendingUpload = pendingUpload; _lienTempTable = lienTempTable; _excelUploadService = excelUploadService; _arCommonService = arCommonService; }
public FileController(IFile fileBL, IAdjuster adjusterBL, IEmployer employerBL, IInsurer insurerBL, IInsurerBranch insurerBranchBL, IDepartment department, IInvoice invoice, IPayment payment, IStorageServices storageServices , IARCommonServices arCommonService, IInvoiceNote invoiceNote, IPaymentRefund paymentRefund, IState state) { _fileBL = fileBL; _adjusterBL = adjusterBL; _employerBL = employerBL; _insurerBL = insurerBL; _insurerBranchBL = insurerBranchBL; _department = department; _invoice = invoice; _payment = payment; _storageServices = storageServices; _arCommonService = arCommonService; _invoiceNote = invoiceNote; _paymentRefund = paymentRefund; _stateBL = state; }
public LoginViewModel(INavigationService _iNavigationService, IConnectivityServices _connectivityServices, IAuthenticationServices _authenticationServices, IUserDialogsServices _userDialogsServices, IStorageServices _storageServices ) { this._iNavigationService = _iNavigationService; this._iConnectivityServices = _connectivityServices; this._iAuthenticationServices = _authenticationServices; this._iUserDialogsServices = _userDialogsServices; this._iStorageServices = _storageServices; CanSubmit = false; IsAccessing = false; AccessCommand = new Command(Access); CheckIsLoggedCommand = new Command(CheckIsLogged); }
// GET: CheckAssignment public CheckAssignmentController(IOCR ocr, IStorageServices storageServices, IARCommonServices arCommonService) { _storageServices = storageServices; _arCommonService = arCommonService; _ocr = ocr; }
public ConfigurationServices(IStorageServices storage) { this.storage = storage; }
public ManageSiQuanServices(QL_SiQuanDBContext context, IStorageServices storageServices) { _context = context; _storageServices = storageServices; }
public QLDangVienServices(QL_SiQuanDBContext context, IStorageServices storageServices) { _context = context; _storageServices = storageServices; }
public static Model.StorageArray RegisterStorageArray( IStorageServices storageService, String sqlConnectionString, String ssvServer, String ssvUserName, String ssvPassword) { var serverGroups = storageService.GetServerGroups(); var ourGroup = serverGroups.First(g => g.OurGroup); var arrayId = new Guid(ourGroup.Id); var servers = storageService.GetServers().Where(s => s.GroupId.Equals(ourGroup.Id)); var storageArray = new Model.StorageArray { Id = arrayId, Name = ourGroup.Alias, }; var storageCredential = new StorageCredential { Id = Guid.NewGuid(), Login = ssvUserName, Password = ssvPassword, StorageArrayId = storageArray.Id }; var storageServers = servers.Select(s => new StorageServer { Id = new Guid(s.Id), Name = s.HostName, StorageArrayId = storageArray.Id }).ToList(); var newStorageArrayEvent = new StorageEvent { Id = Guid.NewGuid(), EventType = EventType.Config, ConfigType = EventConfigType.New, ObjectId = storageArray.Id, ObjectType = EntityType.StorageArray, MessageType = EventMessageType.NewStorageArray, StorageArrayId = storageArray.Id, EventTimeStamp = DateTime.UtcNow, }; using (var dataService = DataService.Create(sqlConnectionString)) { if (dataService.StorageArrays.Find(storageArray.Id) != null) { var msg = String.Format(Resources.StorageArrayAlreadyRegisteredError, storageArray.Id); _traceSource.TraceEvent(TraceEventType.Error, 0, msg); throw new ApplicationException(msg); } dataService.StorageArrays.Add(storageArray); dataService.StorageCredentials.Add(storageCredential); dataService.StorageServers.AddRange(storageServers); dataService.StorageEvents.Add(newStorageArrayEvent); var sessionManager = new SessionManager(dataService); sessionManager.CloseAllSessions(); dataService.Save(); } return(storageArray); }
public ManageProductServices( AppleDbContext context, IStorageServices storageServices) { _context = context; _storageService = storageServices; }