private void ProviderHasKeysHandler(ProviderHasKeysRequestMessage request) { Log("Checking if provider has keys..."); var details = _apiKeyService.GetNetworkDetails(request.Id); var hasKeys = !string.IsNullOrWhiteSpace(details.Key) && !string.IsNullOrWhiteSpace(details.Secret); M.SendAsync(new ProviderHasKeysResponseMessage(request, hasKeys)); }
private void ProviderDetailsHandler(ProviderDetailsRequestMessage request) { Log("Sending provider details..."); var response = _apiKeyService.GetNetworkDetails(request.Id); M.SendAsync(new ProviderDetailsResponseMessage(request, response)); }