コード例 #1
0
        public AudioController(IServiceFactory ninjectFactory)
        {
            if (ninjectFactory == null)
                throw new ArgumentNullException(nameof(ninjectFactory));

            _tracksService = ninjectFactory.CreateTracksService();
        }
コード例 #2
0
 public FileUploadController(IServiceFactory serviceFactory)
 {
     _tracksService = serviceFactory.CreateTracksService();
     _imageService = serviceFactory.CreateImageService();
 }
コード例 #3
0
 public CompilationController(IServiceFactory serviceFactory)
 {
     _compilationsService = serviceFactory.CreateCompilationService();
     _tracksService = serviceFactory.CreateTracksService();
     _imageService = serviceFactory.CreateImageService();
 }