public BrowseTasksOnMapViewModel(INavigationService navigationService, IJobRepo jobRepo) : base(navigationService) { VisibleRegionChangedCommand = new DelegateCommand <MapSpan>(VisibleRegionChanged); CustomPinClickedCommand = new DelegateCommand <CustomPin>(async(pin) => await CustomPinClickedAsync(pin)); _jobRepo = jobRepo; }
// Constructor to initiate the repository and automapping class using dependency injection public JobsController(IJobRepo repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public JobExecutionService(IJobRepo jobRepo, IJobExecutionRepo jobExecutionRepo, IConfiguration configuration) { _jobExecutionRepo = jobExecutionRepo; _jobRepo = jobRepo; _configuration = configuration; }
//构造函数JobService将IJobRepo作为依赖注入到它的构造函数 public JobService(IJobRepo jobRepo) { _jobRepo = jobRepo; }
public Handler(IJobRepo jobRepo) { this.jobRepo = jobRepo; }
public NewJobConsumer(IJobRepo jobRepo) { this.jobRepo = jobRepo; }
public JobService(IJobRepo jobRepo) { this.jobRepo = jobRepo; }
public Handler(IJobRepo jobRepo, IPublishEndpoint publishEndpoint) { this.jobRepo = jobRepo; this.publishEndpoint = publishEndpoint; }
public blaservice(IJobRepo jobRepo) { _jobRepo = jobRepo; }
public JobManager(IJobRepo repo, INettingManager nettingManager) { this.Repo = repo; this.NettingManager = nettingManager; }