static void DoClient_CircuitBreaker(string u) { var socket = Request_Reply.CreateClient(u); var breaker = new CircuitBreaker(() => { do { Request_Reply.SendMsg(socket, "ok"); } while (true); }, null); breaker.Process(); }
static void DoClient(string u) { var socket = Request_Reply.CreateClient(u); Request_Reply.SendAndWaitReply(socket); }