Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        private void ProviderDetailsHandler(ProviderDetailsRequestMessage request)
        {
            Log("Sending provider details...");

            var response = _apiKeyService.GetNetworkDetails(request.Id);

            M.SendAsync(new ProviderDetailsResponseMessage(request, response));
        }