public bool AcquireTokenNonblocking(long tokenCount, ITokenBucketCallback callback)
            {
                TokenRequest request = new TokenRequest();

                request.type         = TokenRequestType.NONBLOCKING;
                request.callback     = callback;
                request.channel      = _channel;
                request.initialBC    = _bc;
                request.requestToken = tokenCount;
                return(_simpleBWControlService.ProcessRequest(request));
            }
示例#2
0
 public bool AcquireTokenNonblocking(long tokenCount, ITokenBucketCallback callback)
 {
     SimpleBWControlService.TokenRequest request = new SimpleBWControlService.TokenRequest {
         type         = SimpleBWControlService.TokenRequestType.NONBLOCKING,
         callback     = callback,
         channel      = this._channel,
         initialBC    = this._bc,
         requestToken = tokenCount
     };
     return(this._simpleBWControlService.ProcessRequest(request));
 }
 public bool AcquireTokenNonblocking(long tokenCount, ITokenBucketCallback callback)
 {
     TokenRequest request = new TokenRequest();
     request.type = TokenRequestType.NONBLOCKING;
     request.callback = callback;
     request.channel = _channel;
     request.initialBC = _bc;
     request.requestToken = tokenCount;
     return _simpleBWControlService.ProcessRequest(request);
 }
示例#4
0
		public bool AcquireTokenNonblocking(long tokenCount, ITokenBucketCallback callback) {
			return true;
		}
 public bool AcquireTokenNonblocking(long tokenCount, ITokenBucketCallback callback)
 {
     return(true);
 }