Beispiel #1
0
 public bool TryCall(Request request)
 {
     if (isCalling.Get())
     {
         return(false);
     }
     Call(Serializator.Clone(request));
     isCalling.Set(true);
     return(true);
 }
Beispiel #2
0
        public void Initialize(List <Request> requests)
        {
            this.requests = Serializator.Clone(requests);
            pending       = new List <Request>();

            callers = new List <Caller>();
            for (int n = 0; n < Current.Context.ParallelRequests; n++)
            {
                callers.Add(new Caller(this));
            }
        }