Пример #1
0
 private static VariableCollection WaitResponse(PendingRequest pendingRequest)
 {
     var response = pendingRequest.Wait(true) as VariableCollection;
     return (response);
 }
Пример #2
0
        private VariableCollection InvokeCore(JukeboxMessage obj)
        {
            var pendingRequest = new PendingRequest { Id = obj.MessageId };
            lock (pendingRequests)
                pendingRequests.Add(pendingRequest);

            WriteMessage(obj);

            var response = WaitResponse(pendingRequest);
            return (response);
        }