コード例 #1
0
 /// <summary>Creates a new instance of the controller.</summary>
 /// <param name="readerService">The service for reading the CSV file.</param>
 /// <param name="writerService">The service for writting the CSV file.</param>
 /// <param name="configuration">The configuration for the application.</param>
 /// <param name="sortService">The service for sorting the players.</param>
 /// <param name="cleanService">The service for cleaning up the data to reduce chances of errors.</param>
 public PlayerController(ICsvFileReaderService readerService,
                         ICsvFileWriterService writerService,
                         IConfiguration configuration,
                         ISortService sortService,
                         IDataCleanerService cleanService)
 {
     _readerService = readerService;
     _writerService = writerService;
     _configuration = configuration;
     _sortService   = sortService;
     _cleanService  = cleanService;
 }
コード例 #2
0
 /// <summary>Creates a new instance of the controller.</summary>
 /// <param name="fileReaderService">The service for reading the CSV file.</param>
 /// <param name="fileUploadService">The service for uploading a CSV file.</param>
 /// <param name="configuration">The configuration for the application.</param>
 public BhqStatsController(ICsvFileReaderService fileReaderService, ICsvFileUploaderService fileUploadService, IConfiguration configuration)
 {
     _fileReaderService = fileReaderService;
     _fileUploadService = fileUploadService;
     _configuration     = configuration;
 }