public LaunchClientView(IClientLaunchService launchService, IAuthorizationService authorization, IUserService userService, IHostApplicationLifetime appLifetime, ILogger logger, IClientJarService jarService) { _launchService = launchService; _authorization = authorization; _userService = userService; _appLifetime = appLifetime; _jarService = jarService; _logger = logger; }
public MessageService(IApiService api, IHttpClientFactory factory, IUserService userService, IClientLaunchService launch, IHostApplicationLifetime appLifetime) { _semaphore = new SemaphoreSlim(1); _consumed = new HashSet <int>(); _lastRegister = DateTimeOffset.MinValue; _api = api; _userService = userService; _client = factory.CreateClient("Default"); _launch = launch; _appLifetime = appLifetime; }