コード例 #1
0
 public AircraftsCore(ILoader loader, INewKeeper newKeeper, INewLoader newLoader)
 {
     _loader    = loader;
     _newKeeper = newKeeper;
     _newLoader = newLoader;
     _aircrafts = new AircraftCollection();
 }
コード例 #2
0
 public PlanOpsCalculator(INewLoader newLoader, INewKeeper newKeeper, IAircraftsCore aircraftsCore, IFlightTrackCore flightTrackCore)
 {
     _newLoader       = newLoader;
     _newKeeper       = newKeeper;
     _aircraftsCore   = aircraftsCore;
     _flightTrackCore = flightTrackCore;
 }
コード例 #3
0
ファイル: DiscrepanciesCore.cs プロジェクト: jecus/Cas
 public DiscrepanciesCore(ILoader loader, INewLoader newLoader, IDirectiveCore directiveCore,
                          IAircraftFlightCore aircraftFlightCore)
 {
     _loader             = loader;
     _newLoader          = newLoader;
     _directiveCore      = directiveCore;
     _aircraftFlightCore = aircraftFlightCore;
 }
コード例 #4
0
 public NonRoutineJobCore(ICasEnvironment casEnvironment, IWorkPackageCore workPackageCore,
                          INonRoutineJobDataAccess nonRoutineJobDataAccess, INewLoader newLoader)
 {
     _casEnvironment          = casEnvironment;
     _workPackageCore         = workPackageCore;
     _nonRoutineJobDataAccess = nonRoutineJobDataAccess;
     _newLoader = newLoader;
 }
コード例 #5
0
 public DirectiveCore(INewKeeper newKeeper, INewLoader newLoader, IKeeper keeper,
                      ILoader loader, IItemsRelationsDataAccess itemsRelationsDataAccess)
 {
     _newKeeper = newKeeper;
     _newLoader = newLoader;
     _keeper    = keeper;
     _loader    = loader;
     _itemsRelationsDataAccess = itemsRelationsDataAccess;
 }
コード例 #6
0
 public MaintenanceCore(ICasEnvironment casEnvironment, INewLoader newLoader,
                        INewKeeper newKeeper, IItemsRelationsDataAccess itemsRelationsDataAccess, IAircraftsCore aircraftsCore)
 {
     _casEnvironment           = casEnvironment;
     _newLoader                = newLoader;
     _newKeeper                = newKeeper;
     _itemsRelationsDataAccess = itemsRelationsDataAccess;
     _aircraftsCore            = aircraftsCore;
 }
コード例 #7
0
ファイル: DocumentCore.cs プロジェクト: jecus/Cas
 public DocumentCore(ICasEnvironment casEnvironment, INewLoader newLoader, ILoader loader,
                     IAircraftsCore aircraftsCore, INewKeeper newKeeper, IComponentCore componentCore)
 {
     _casEnvironment = casEnvironment;
     _newLoader      = newLoader;
     _loader         = loader;
     _aircraftsCore  = aircraftsCore;
     _newKeeper      = newKeeper;
     _componentCore  = componentCore;
 }
コード例 #8
0
ファイル: PurchaseCore.cs プロジェクト: mgladilov/Cas
 /// <summary>
 /// Создает Сурвис закупок
 /// </summary>
 public PurchaseCore(ICasEnvironment casEnvironment, INewLoader newLoader, ILoader loader,
                     IPackageCore packageService, INewKeeper newKeeper, IPerformanceCalculator performanceCalculator)
 {
     _casEnvironment        = casEnvironment;
     _newLoader             = newLoader;
     _loader                = loader;
     _packageCore           = packageService;
     _newKeeper             = newKeeper;
     _performanceCalculator = performanceCalculator;
 }
コード例 #9
0
ファイル: TransferRecordCore.cs プロジェクト: jecus/Cas
 public TransferRecordCore(INewLoader newLoader, INewKeeper newKeeper,
                           IComponentCore componentCore, IAircraftsCore aircraftsCore, ICalculator calculator,
                           IStoreCore storeCore, IFilesDataAccess filesDataAccess)
 {
     _newLoader       = newLoader;
     _newKeeper       = newKeeper;
     _componentCore   = componentCore;
     _aircraftsCore   = aircraftsCore;
     _calculator      = calculator;
     _storeCore       = storeCore;
     _filesDataAccess = filesDataAccess;
 }
コード例 #10
0
ファイル: CaaEnvironment.cs プロジェクト: jecus/Cas
        /// <summary>
        /// Подключаемся к базе данных под указанной учетной записью и выбираем базу данных
        /// </summary>
        /// <param name="serverName"></param>
        /// <param name="userName"></param>
        /// <param name="pass"></param>
        /// <param name="database"></param>
        public void Connect(string serverName, string userName, string pass, string database)
        {
            ApiProvider.CheckAPIConnection();

            var user = ApiProvider.GetUserAsync(userName, pass);

            if (user == null)
            {
                throw new Exception($"Invalid combination of login and password");
            }

            IdentityUser = user;
            AuditRepository.WriteAsync(new Entities.User(user), AuditOperation.SignIn, user);

            _newLoader = new NewLoader(this);
        }
コード例 #11
0
ファイル: MailSender.cs プロジェクト: jecus/Cas
 public MailSender(INewLoader loader)
 {
     _settings = loader.GetObject <SettingDTO, Settings>()?.GlobalSetting.MailSettings;
 }
コード例 #12
0
 public StockCalculator(ICasEnvironment casEnvironment, INewLoader newLoader, IComponentCore componentCore)
 {
     _casEnvironment = casEnvironment;
     _newLoader      = newLoader;
     _componentCore  = componentCore;
 }
コード例 #13
0
ファイル: FlightTrackCore.cs プロジェクト: jecus/Cas
 public FlightTrackCore(INewLoader newLoader, ILoader loader, ICasEnvironment environment)
 {
     _newLoader   = newLoader;
     _loader      = loader;
     _environment = environment;
 }
コード例 #14
0
ファイル: FilesDataAccess.cs プロジェクト: mgladilov/Cas
 public FilesDataAccess(INewLoader newLoader)
 {
     _newLoader = newLoader;
 }