How to correctly implement “OnTimeout” event in fo-dicom 5.0.3?

66 views
Skip to first unread message

Ekramul Farook

unread,
Oct 30, 2023, 3:01:39 AM10/30/23
to Fellow Oak DICOM

Hello everybody,

I am trying to implement Timeout events both for “CStore” and “Echo” requests. I tried the following for CStore request like:


MyDicomClient.RequestTimedOut += Client_RequestTimedOut;


And later implemented the “Client_RequestTimedOut” event as

 

private void Client_RequestTimedOut(object sender, FellowOakDicom.Network.Client.EventArguments.RequestTimedOutEventArgs e)

{

            //My Code goes here

}

This did not seem to work on “TimeOut” after a long time. I didn’t change default timeout setting of 2000mS. But this did not work both for local PACS or Remote PACS server.

BTW, I also tried the Timeout events both for CStore and Echo commands, but failed to get my Timeout events fired.

Can anybody tell me what’s wrong with my code?

Thanks in advance.

Sincerely

Reply all
Reply to author
Forward
0 new messages