diff --git a/NanaGet/NanaGetCore.cpp b/NanaGet/NanaGetCore.cpp index 544656d..dfca147 100644 --- a/NanaGet/NanaGetCore.cpp +++ b/NanaGet/NanaGetCore.cpp @@ -597,39 +597,11 @@ void NanaGet::Aria2Instance::UpdateInstance( // return; // } // -// try +// NanaGet::JsonRpc2::NotificationMessage Response; +// if (NanaGet::JsonRpc2::ToNotificationMessage(Message, Response)) // { // // } -// catch (const std::exception&) -// { -// -// } -// -// -// /*nlohmann::json ResponseJson; -// try -// { -// ResponseJson = nlohmann::json::parse(ResponseString); -// } -// catch (std::exception const& ex) -// { -// throw winrt::hresult_illegal_method_call(winrt::to_hstring(ex.what())); -// } -// -// if ("2.0" != ResponseJson["jsonrpc"].get() || -// Identifier != ResponseJson["id"].get()) -// { -// throw winrt::hresult_illegal_method_call(); -// } -// -// if (ResponseJson.end() != ResponseJson.find("error")) -// { -// throw winrt::hresult_illegal_method_call( -// winrt::to_hstring(ResponseJson["error"].get())); -// } -//ResponseJson["result"].dump(2);*/ -// // // ::OutputDebugStringW(Mile::FormatWideString( // L"\r\n\r\n%s\r\n\r\n",