public void Init( string previewPath, string subtitlesPath, IViewForMediaWebSocket view, ICastService castService, CancellationToken cancellationToken, int?port = null) { try { if (port.HasValue) { _logger.LogInformation($"{nameof(Init)}: Port = {port} was provided, it will be used to start this web server..."); } port ??= WebServerUtils.GetOpenPort(); _logger.LogInformation($"{nameof(Init)}: Starting web server on url = {WebServerUtils.GetWebServerIpAddress(port.Value)}..."); _castItController = new CastItController(_loggerFactory.CreateLogger <CastItController>(), _fileService, castService, _ffmpegService, _player, _appSettings); _webServer = BuildServer(previewPath, subtitlesPath, view, port.Value); _webServer.Start(cancellationToken); _logger.LogInformation($"{nameof(Init)}: Server was successfully started"); } catch (Exception e) { _logger.LogError(e, $"{nameof(Init)}: Unknown error"); _telemetryService.TrackError(e); throw; } }
public CastController(ICastService castService, IMapper mapper, IWebHostEnvironment env) { _castService = castService; _mapper = mapper; _env = env; }
public MoviesController(IMovieService movieService, ICastService castService, IGenreService genreService, IHttpContextAccessor httpContextAccessor, IUserService userService) { _movieService = movieService; _castService = castService; _genreService = genreService; _httpContextAccessor = httpContextAccessor; _userService = userService; }
public MoviesController(IMovieService movieService, ICastService castService, IGenreService genreService) { // 1.Constructir injection***** inject the implemenation into the //constructor of the class //_movieService = new MovieService(); _movieService = movieService; _castService = castService; _genreService = genreService; }
public MainService( ILogger <MainService> logger, IAppWebServer webServer, ICastService castService, IAppSettingsService appSettings, IFileService fileService, int startingPort) { _logger = logger; _webServer = webServer; _startingPort = startingPort; _fileService = fileService; _appSettings = appSettings; _castService = castService; }
public CastItController( ILogger <CastItController> logger, IFileService fileService, ICastService castService, IFFmpegService ffmpegService, IPlayer player, IAppSettingsService appSettings) { _logger = logger; _fileService = fileService; _castService = castService; _ffmpegService = ffmpegService; _player = player; _appSettings = appSettings; }
public MovieController(IMovieService movieService, IDirectorService directorService, ICastService castService, IScenaristService scenaristService, IGenreService genreService, ILanguageService languageService, IWebHostEnvironment env, UserManager <User> userManager) { _movieService = movieService; _directorService = directorService; _castService = castService; _scenaristService = scenaristService; _langugageService = languageService; _genreService = genreService; _env = env; _userManager = userManager; }
public RetrieveCast(ICastService castService) { _castService = castService; }
public void Init(string previewPath, string subtitlesPath, ICastService castService, CancellationToken cancellationToken, int?port = null) => Init(previewPath, subtitlesPath, null, castService, cancellationToken, port);
public CastController(ICastService castService) { _castService = castService; }
public CastController() { _castService = new CastService(); }
public FilmsController(IFilmService filmService, IGenreService genreService, ICastService castService) { this.filmService = filmService; this.genreService = genreService; this.castService = castService; }
public CastsController(ICastService castService, IFilmService filmService, ITvSerieService tvSerieService) { this.castService = castService; this.filmService = filmService; this.tvSerieService = tvSerieService; }
public CastController(ICastService service) { _service = service; }
public CastController(ICastService castService, IMapper mapper) { _castService = castService; _mapper = mapper; }
public CastsController(IMovieService movieService, ICastService castService) { _movieService = movieService; _castService = castService; }
public MoviesController(ICastService castService, IMovieService movieService) { _castService = castService; _movieService = movieService; }