Brunet.Services.Dht.Dht.AsyncPut C# (CSharp) Méthode

AsyncPut() public méthode

public AsyncPut ( MemBlock key, MemBlock value, int ttl, Channel returns ) : void
key MemBlock
value MemBlock
ttl int
returns Channel
Résultat void
    public void AsyncPut(MemBlock key, MemBlock value, int ttl, Channel returns) {
      AsyncPut(key, value, ttl, returns, false);
    }

Same methods

Dht::AsyncPut ( MemBlock key, MemBlock value, int ttl, Channel returns, bool unique ) : void

Usage Example

Exemple #1
0
 override public void Start()
 {
   Channel returns = new Channel();
   returns.CloseEvent += delegate(object o, EventArgs ea) {
     try {
       bool success = (bool) returns.Dequeue();
       _result = new DhtPutResult(success, null);
     } catch (Exception e) {
       _result = new DhtPutResult(false, e);
     } finally {
       Finished();
     }
   };
   Dht dht = new Dht(Node, 3, 20);
   dht.AsyncPut(Key, Value, Ttl, returns);
 }
All Usage Examples Of Brunet.Services.Dht.Dht::AsyncPut