public DashboardBuilder(IDashboardRepository dashboardrepository, IWidgetRepository widgetrepository, IParameterRepository parameterrepository) { _dashboardrepository = dashboardrepository; _widgetrepository = widgetrepository; _parameterrepository = parameterrepository; }
public AlarmService(ISession session) : base(session) { _alarmRepository = new AlarmRepository(session); _parameterRepository = new ParameterRepository(session); _alarmMetricService = new AlarmMetricService(session); }
public AlarmFiredService(IAlarmFiredRepository AlarmFiredRepository, IParameterRepository parameterRepository, IProcessInstanceRepository processInstanceRepository, IAlarmRepository alarmRepository) { _alarmFiredRepository = AlarmFiredRepository; _parameterRepository = parameterRepository; _processInstanceRepository = processInstanceRepository; _alarmRepository = alarmRepository; }
public ParameterService(IParameterRepository parameterRepository, IProcessRepository processRepository, IDeviceRepository deviceRepository, IAlarmService alarmService) { _parameterRepository = parameterRepository; _deviceRepository = deviceRepository; _processRepository = processRepository; _alarmService = alarmService; }
public Handler( IParameterRepository parameterRepository, IScriptInterpreterUnitOfWork unitOfWork) { _parameterRepository = parameterRepository; _unitOfWork = unitOfWork; }
public ParameterService(ISession session) : base(session) { _parameterRepository = new ParameterRepository(session); _processRepository = new ProcessRepository(session); _deviceRepository = new DeviceRepository(session); _alarmService = new AlarmService(session); }
public void Init() { parameterRepository = Substitute.For <IParameterRepository>(); var mapper = new MapperConfiguration(x => x.AddProfile(new MappingProfile())).CreateMapper(); log = Substitute.For <ILog>(); parameterService = new ParameterService(parameterRepository, mapper, log); }
public Authentication(ILdapRepository ldapRepository, IPermissionGroupRepository permissionGroupRepository, IParameterRepository parameterRepository, ILogRepository log) { this.ldapRepository = ldapRepository; this.permissionGroupRepository = permissionGroupRepository; this.parameterRepository = parameterRepository; this.log = log; }
public decimal VAT() { //DEPENDENCY INJECTION!! //IParameterRepository paramrepo = new XMLParameterRepository(); IParameterRepository paramrepo = (IParameterRepository)DIResolver.GetClass <IParameterRepository>(); return(decimal.Parse(paramrepo.getParameter("VAT"))); }
public FileAttachmentService(IConfiguration config, IMasterService masterService, IParameterRepository paramRepo) { _config = config; _masterService = masterService; _paramRepo = paramRepo; }
public SeedDomainService(ITypeRepository typeRepository, IStateRepository stateRepository, IParameterRepository parameterRepository) { _typeRepository = typeRepository; _stateRepository = stateRepository; _parameterRepository = parameterRepository; }
public AlarmFiredService(ISession session) : base(session) { _alarmFiredRepository = new AlarmFiredRepository(session); _parameterRepository = new ParameterRepository(session); _processInstanceRepository = new ProcessInstanceRepository(session); _alarmRepository = new AlarmRepository(session); }
static void Main(string[] args) { NinjectControllerFactory ninject = new NinjectControllerFactory(); ControllerBuilder.Current.SetControllerFactory(ninject); ISearchEngineRepository repositorySearchEngine = ninject.ninjectKernel.Get <ISearchEngineRepository>(); IParameterRepository repositoryParameter = ninject.ninjectKernel.Get <IParameterRepository>(); IParameterTypeRepository repositoryParameterType = ninject.ninjectKernel.Get <IParameterTypeRepository>(); string[] searchEngineWinners = new string[args.Length]; long[] maxResults = new long[args.Length]; long[] totals = new long[args.Length]; long maxTotal = 0; string maxArg = ""; if (args.Length > 0) { for (int i = 0; i < args.Length; i++) { maxResults[i] = 0; totals[i] = 0; Console.Write("\n" + args[i] + ": "); foreach (var item in repositorySearchEngine.SearchEngines.Where(x => x.disabled == false)) { ISearch search = ninject.ninjectKernel.Get <ISearch>(new Ninject.Parameters.ConstructorArgument("searchEngine", item)); search.Execute(args[i], repositoryParameter.Parameters.Where(x => x.searchEngineID == item.searchEngineID && x.disabled == false), repositoryParameterType.ParameterTypes.Where(x => x.disabled == false)); Console.Write(item.name + ": " + search.results + " "); if (search.results > maxResults[i]) { searchEngineWinners[i] = item.name; maxResults[i] = search.results; } totals[i] += search.results; } if (totals[i] > maxTotal) { maxArg = args[i]; maxTotal = totals[i]; } } for (int i = 0; i < args.Length; i++) { Console.Write("\n" + searchEngineWinners[i] + " winner: " + args[i]); } Console.WriteLine("\nTotal winner: " + maxArg); } else { Console.WriteLine("\nBad Usage\nUsage: searchfight.exe [args]"); } }
public GetContentTypeResponse Get(Guid id) { IContentTypeRepository repo = IoC.Container.Resolve <IContentTypeRepository>(); GetContentTypeResponse response = repo.GetById <GetContentTypeResponse>(id.ToString()); IParameterRepository paramRepo = IoC.Container.Resolve <IParameterRepository>(); response.Parameters = paramRepo.GetByParentId(id, ParameterParentType.ContentType); return(response); }
public Handler(IParameterRepository parameterRepository, IScriptRepository scriptRepository, ITranslationService translationService, IMapper mapper) { _parameterRepository = parameterRepository; _scriptRepository = scriptRepository; _translationService = translationService; _mapper = mapper; }
public WorkflowLogic(IWorkflowQueueRepository workflowQueueRepository, IRunnedWorkflowRepository runnedWorkflowRepository, IRunnedWorkflowStepRepository runnedWorkflowStepRepository, IRunnedTaskRepository runnedTaskRepository, IRunnedNextWorkflowStepRepository runnedNextWorkflowStepRepository, IParameterRepository parameterRepository) { _workflowQueueRepository = workflowQueueRepository; _runnedWorkflowRepository = runnedWorkflowRepository; _runnedWorkflowStepRepository = runnedWorkflowStepRepository; _runnedTaskRepository = runnedTaskRepository; _runnedNextWorkflowStepRepository = runnedNextWorkflowStepRepository; _parameterRepository = parameterRepository; }
internal CalculateFunction( IScriptRepository scriptRepository = null, IParameterRepository parameterRepository = null, bool useContainer = false, ICalculator calculator = null) : this() { _scriptRepository = scriptRepository; _parameterRepository = parameterRepository; _useContainer = useContainer; Calculator = calculator; }
public ScriptInterpreterUnitOfWork( ScriptInterpreterDbContext context, IScriptRepository scriptRepository, IParameterRepository parameterRepository, ITagRepository tagRepository) { _context = context ?? throw new ArgumentNullException(nameof(context)); Scripts = scriptRepository ?? throw new ArgumentNullException(nameof(scriptRepository)); Parameters = parameterRepository ?? throw new ArgumentNullException(nameof(parameterRepository)); Tags = tagRepository ?? throw new ArgumentNullException(nameof(tagRepository)); }
public FiguresController(IHostingEnvironment host, IParameterRepository parameterRepository, IScriptInterpreterUnitOfWork unitOfWork, IMapper mapper, IOptionsSnapshot <FigureSettings> options) { _host = host; _parameterRepository = parameterRepository; _unitOfWork = unitOfWork; _mapper = mapper; _photoSettings = options.Value; }
public ThuTucHanhChinhService( IDuongDiQuyTrinhRepository duongDiQuyTrinhRepository, IThuTucHanhChinhBoRepository thuTucHanhChinhRepository, ILinhVucRepository linhVucRepository, IThuTucHanhChinhRepository thuTucHanhChinhRepositories, IParameterRepository parameterRepository) { _duongDiQuyTrinhRepository = duongDiQuyTrinhRepository; _thuTucHanhChinhRepository = thuTucHanhChinhRepository; _linhVucRepository = linhVucRepository; _thuTucHanhChinhRepositories = thuTucHanhChinhRepositories; }
public ProductController(IProductRepository productRepo, IKlantRepository klantRepo, IKlantLoginRepository klantLoginsRepo , IOnlineBestelLijnRepository onlineBestelLijn, IParameterRepository parameterRepo, IStringLocalizer <ProductController> localizer) { this._onlineBestelLijnRepo = onlineBestelLijn; this._productRepo = productRepo; this._klantRepo = klantRepo; this._klantLoginsRepo = klantLoginsRepo; this._parameterRepo = parameterRepo; this._localizer = localizer; //Test commit }
public MallController(ICompositeViewEngine viewEngine, IConfiguration configuration, IMediaRepository MediaRepository, IParameterRepository ParameterRepository, IProductRepository ProductRepository, IMemberRepository MemberRepository) { _viewEngine = viewEngine; IMR = MediaRepository; IMR.constr = configuration.GetConnectionString("SqlConn"); IPR = ParameterRepository; IPR.constr = configuration.GetConnectionString("SqlConn"); IPRR = ProductRepository; IPRR.constr = configuration.GetConnectionString("SqlConn"); IMER = MemberRepository; IMER.constr = configuration.GetConnectionString("SqlConn"); }
public ModelController() { //If you want to use Generic Repository with Unit of work repository = new GenericRepository <Model>(unitOfWork); //If you want to use Specific Repository with Unit of work groupRepository = new GroupRepository(unitOfWork); alarmDescriptionRepository = new AlarmDescriptionRepository(unitOfWork); partRepository = new PartRepository(unitOfWork); parameterRepository = new ParameterRepository(unitOfWork); alarmRepository = new AlarmRepository(unitOfWork); }
public DetailsViewModel(INavigation nav) { _navigation = nav; _parameterA = new Parameter(); _parameterA.Id = 1; _parameterB = new Parameter(); _parameterB.Id = 2; _parameterRepository = new ParameterRepository(); UpdateParameterCommand = new Command(async() => await UpdateParameter()); FetchParameterDetails(); }
public Handler( IScriptRepository scriptRepository, IParameterRepository parameterRepository, IScriptInterpreterUnitOfWork unitOfWork, IScriptMappingProfile scriptMappingProfile, IDateTime dateTime) { _scriptRepository = scriptRepository; _parameterRepository = parameterRepository; _unitOfWork = unitOfWork; _scriptMappingProfile = scriptMappingProfile; _dateTime = dateTime; }
public CartController(IConfiguration configuration, IMemberRepository MemberRepository, IProductRepository ProductRepository, IParameterRepository ParameterRepository, IOrderRepository OrderRepository, IEmailService EmailService, IEmailConfiguration EmailConfiguration) { IMER = MemberRepository; IMER.constr = configuration.GetConnectionString("SqlConn"); IPRR = ProductRepository; IPRR.constr = configuration.GetConnectionString("SqlConn"); IPR = ParameterRepository; IPR.constr = configuration.GetConnectionString("SqlConn"); IOR = OrderRepository; IOR.constr = configuration.GetConnectionString("SqlConn"); config = configuration; IES = EmailService; IEC = EmailConfiguration; }
public QuanTriService( ILinhVucRepository linhVucRepository, IParameterRepository parameterRepository, IDMCapDonViRepository dmCapDonViRepository, IDMDonViRepository dmDonViRepository, ITTHCDonViMappingRepository tthcDonViMapRepository, IDMHoSoKemTheoRepository hoSoKemTheoMapRepository) { _parameterRepository = parameterRepository; _linhVucRepository = linhVucRepository; _dmCapDonViRepository = dmCapDonViRepository; _tthcDonViMapRepository = tthcDonViMapRepository; _dmDonViRepository = dmDonViRepository; _hoSoKemTheoMapRepository = hoSoKemTheoMapRepository; }
private IEnumerable <IParameter> GetParameters(SI.Script scriptData, IParameterRepository parameterRepository) { var parametersData = parameterRepository.GetAllParametersForScriptAsync(scriptData.Id).Result; foreach (var parameter in parametersData) { yield return(new SIP.Parameter() { Number = parameter.Number, Name = parameter.Name, Value = parameter.Value, VisibilityValidator = parameter.VisibilityValidator, Context = (SIP.ParameterOptions)parameter.Context }); } }
private void UpdateParameters(Guid contentId, IList <Parameter> parameters, IUnitOfWork uow) { IParameterRepository paramRepo = IoC.Container.Resolve <IParameterRepository>(uow); IList <Parameter> currentParams = paramRepo.GetByParentId(contentId, ParameterParentType.ContentType); foreach (Parameter param in currentParams) { if (parameters.Any(item => item.Id == param.Id)) { continue; } paramRepo.Delete(param.Id.ToString()); } foreach (Parameter param in currentParams) { if (!parameters.Any(item => item.Id == param.Id)) { continue; } Parameter modifiedParam = parameters.FirstOrDefault(item => item.Id == param.Id); param.UpdateFrom(modifiedParam); paramRepo.Update(param); } foreach (Parameter param in parameters) { if (currentParams.Any(item => item.Id == param.Id)) { continue; } //if (param.Id != null && param.Id != Guid.Empty) { continue; } Parameter newParam = new Parameter(); newParam.CreateFrom(param); newParam.ParentType = ParameterParentType.ContentType; newParam.ParentId = contentId; paramRepo.Add(newParam); } }
public ParameterService(IParameterRepository repo) { this.repo = repo; }
public AdvertisementRepository(EscortServicesEntities context, IParameterRepository parameterRepository) : base(context) { _parameterRepository = parameterRepository; }
public ParameterController(IConfiguration configuration, IParameterRepository ParameterRepository) { IAR = ParameterRepository; IAR.constr = configuration.GetConnectionString("SqlConn"); }
public WidgetRepository(IParameterRepository parameterrepository) { _parameterrepository = parameterrepository; }
public ParameterController(IParameterRepository parameterRepository) { this.parameterRepository = parameterRepository; }
public ParameterManageController(IParameterRepository parameterRepository) { ParameterRepository = parameterRepository; }