コード例 #1
0
 public TodosControllerProvider(ITodosRepository todoRepository)
 {
     try
     {
         _todoRepository = todoRepository;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #2
0
 public TodosController(ITodosRepository repository, Cache.TodosCache cache)
 {
     this.repository = repository;
     this.cache      = cache;
 }
コード例 #3
0
ファイル: TodosController.cs プロジェクト: tutaurelia/TodoApp
 public TodosController([FromServices] ITodosRepository repo)
 {
     Repo = repo;
 }
コード例 #4
0
 public CommentsController(ITodosRepository todoRepository)
 {
     _todoRepository = todoRepository;
 }
コード例 #5
0
 public TodosController(ITodosRepository todosRepository)
 {
     _todosRepository = todosRepository;
 }
コード例 #6
0
 /// <summary>
 /// Constuctor with Logger and TodosRepository injected
 /// </summary>
 /// <param name="logger">ILogger<TodosController> object</param>
 /// <param name="todosRepository">TodosRepository object</param>
 public TodosController(ITodosRepository todosRepository, ILogger <TodosController> logger)
 {
     _logger          = logger;
     _todosRepository = todosRepository;
 }
コード例 #7
0
 public TodosService(IMapper mapper, ITodosRepository todosRepository)
 {
     _mapper          = mapper;
     _todosRepository = todosRepository;
 }
コード例 #8
0
ファイル: TodosController.cs プロジェクト: maxcl10/TodoApp
 public TodosController(IMapper mapper, ITodosRepository todosRepository)
 {
     _todosRepository = todosRepository;
     _mapper          = mapper;
 }
コード例 #9
0
 public TodosService(ITodosRepository todosRepository)
 {
     _todosRepository = todosRepository;
 }
コード例 #10
0
 public TestDataProvider(ITodosRepository todosRepository)
 {
     this.todosRepository = todosRepository;
 }
コード例 #11
0
ファイル: TodosService.cs プロジェクト: Balint1/TodoAPI_asp
 public TodosService(ITodosRepository todoRepository, ILogger <TodosService> logger)
 {
     _todoRepository = todoRepository;
     _logger         = logger;
 }
コード例 #12
0
 public UsersDeleteBackgroundService(ConnectionMultiplexer redisConnection, ITodosRepository repository)
 {
     this.redisDb    = redisConnection.GetDatabase();
     this.repository = repository;
 }