Ejemplo n.º 1
0
        public OpCache(DhtNetwork network)
        {
            Core = network.Core;
            Network = network;

            Core.MinuteTimerEvent += Core_MinuteTimerEvent;

            Retry = new RetryIntervals(Core);
            LookupearchInterval = new RetryIntervals(Core);
            NextSave = Core.TimeNow.AddMinutes(1);
            NextPublishAny = Core.TimeNow.AddMinutes(30);

            /*if (Network.IsLookup ||
                (Core.User != null && Core.User.Settings.GlobalIM))
            {
                WebCache cache = new WebCache();
                cache.Address = "http://www.c0re.net/deops/cache/update.php";
                cache.AccessKey = Convert.FromBase64String("O+6IRs7GY1r/JIk+DFY/VK+i8pFTWhsDfNH9R3j3f9Q=");
                AddWebCache(cache);
            }*/
        }
Ejemplo n.º 2
0
        public OpCache(DhtNetwork network)
        {
            Core    = network.Core;
            Network = network;

            Core.MinuteTimerEvent += Core_MinuteTimerEvent;

            Retry = new RetryIntervals(Core);
            LookupearchInterval = new RetryIntervals(Core);
            NextSave            = Core.TimeNow.AddMinutes(1);
            NextPublishAny      = Core.TimeNow.AddMinutes(30);


            /*if (Network.IsLookup ||
             *  (Core.User != null && Core.User.Settings.GlobalIM))
             * {
             *  WebCache cache = new WebCache();
             *  cache.Address = "http://www.c0re.net/deops/cache/update.php";
             *  cache.AccessKey = Convert.FromBase64String("O+6IRs7GY1r/JIk+DFY/VK+i8pFTWhsDfNH9R3j3f9Q=");
             *  AddWebCache(cache);
             * }*/
        }