Пример #1
0
        private void TestPrivateApiHandler(TestPrivateApiRequestMessage request)
        {
            Log("Testing private API...");
            var success = true;

            try
            {
                success = _apiKeyService.TestPrivateApi(request.Id, request.Key, request.Secret, request.Extra);
            }
            catch (Exception e)
            {
                success = false;
                Log($"Error while testing private API: {e.Message}");
            }

            M.SendAsync(new TestPrivateApiResponseMessage(request, success));
        }