Beispiel #1
0
 public WxFileController(IFileDownloaderService fileDownloaderService         = null,
                         IAudioFileService audioFileService                   = null,
                         IHostingEnvironmentService hostingEnvironmentService = null)
 {
     _fileDownloaderService     = fileDownloaderService ?? new FileDownloaderService();
     _audioFileService          = audioFileService ?? new AudioFileService();
     _hostingEnvironmentService = hostingEnvironmentService ?? new HostingEnvironmentService();
 }
Beispiel #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="TextFileIOService" /> class.
 /// </summary>
 /// <param name="hostingEnvironmentService">The injected hosting environment service</param>
 public TextFileIOService(IHostingEnvironmentService hostingEnvironmentService)
 {
     this.hostingEnvironmentService = hostingEnvironmentService;
 }
Beispiel #3
0
 public WxFileController()
 {
     _fileDownloaderService     = new FileDownloaderService();
     _audioFileService          = new AudioFileService();
     _hostingEnvironmentService = new HostingEnvironmentService();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="TextFileIOService" /> class.
 /// </summary>
 /// <param name="hostingEnvironmentService">The injected hosting environment service</param>
 public TextFileIOService(IHostingEnvironmentService hostingEnvironmentService)
 {
     this.hostingEnvironmentService = hostingEnvironmentService;
 }