Example #1
0
        public void StartService()
        {
            if (ServiceHost == null)
            {
                ServiceHost = new ServiceHost(Service);
            }

            Debug.Assert(NodeIdentifier != null, "NodeIdentifier != null");
            KadCore.NodeIdentifier = NodeIdentifier;

            ServiceHost.Open();

            KadCore.JoinToNetwork();
        }
Example #2
0
 public void StoreIntoLookUp(TKey key, TValue value)
 {
     KadCore.StoreIntoLookUp(key, value);
 }
Example #3
0
 public void StoreLookUp(TKey key, IEnumerable <TValue> value)
 {
     KadCore.StoreLookUp(key, value);
 }
Example #4
0
 public IEnumerable <TValue> ValueLookUp(TKey key)
 {
     return(KadCore.ValueLookUp(key));
 }