示例#1
0
        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();
        }
示例#2
0
        static void DoClient(string u)
        {
            var socket = Request_Reply.CreateClient(u);

            Request_Reply.SendAndWaitReply(socket);
        }