зеркало из https://github.com/microsoft/IPC.git
[managed] Throw exception when request is dropped (#27)
This commit is contained in:
Родитель
b04a4333b9
Коммит
35e98bc3ac
|
@ -61,7 +61,7 @@ namespace Managed
|
|||
|
||||
~InvokeLambda()
|
||||
{
|
||||
m_promise->TrySetCanceled();
|
||||
m_promise->TrySetException(gcnew Exception{ "Request was dropped." });
|
||||
}
|
||||
|
||||
void operator()(NativeResponse&& response)
|
||||
|
|
|
@ -61,7 +61,7 @@ namespace Managed
|
|||
|
||||
~ConnectLambda()
|
||||
{
|
||||
m_promise->TrySetCanceled();
|
||||
m_promise->TrySetException(gcnew Exception{ "Connector request was dropped." });
|
||||
}
|
||||
|
||||
void operator()(Interop::Callback<typename NativeClient::ConnectionPtr()>&& getConnection)
|
||||
|
|
Загрузка…
Ссылка в новой задаче