Inheritance: Android.App.Service
        public DevicePingPluginService(MasterService masterService, long pingInterval)
        {
            ping_interval = pingInterval;
            master_service = masterService;

            StartPinging();
        }
        public DevicePingPluginService(MasterService masterService, long pingInterval)
        {
            ping_interval  = pingInterval;
            master_service = masterService;

            StartPinging();
        }
Beispiel #3
0
        public override void OnCreate()
        {
            base.OnCreate();

            local_binder = new LocalBinder(this);

            instance = this;

            plugins = new HashSet <IPluginService> {
                new DevicePingPluginService(this, PING_INTERVAL),
            };
        }
Beispiel #4
0
        public override void OnCreate()
        {
            base.OnCreate();

            local_binder = new LocalBinder(this);

            instance = this;

            plugins = new HashSet<IPluginService> {
                new DevicePingPluginService(this, PING_INTERVAL),
            };
        }
Beispiel #5
0
        public override void OnDestroy()
        {
            base.OnDestroy();

            instance = null;

            HashSet<IPluginService> localPlugins = null;
            lock (plugins) {
                localPlugins = plugins;
            }
            foreach (var plugin in localPlugins) {
                plugin.OnDestroy();
            }
        }
Beispiel #6
0
        public override void OnDestroy()
        {
            base.OnDestroy();

            instance = null;

            HashSet <IPluginService> localPlugins = null;

            lock (plugins) {
                localPlugins = plugins;
            }
            foreach (var plugin in localPlugins)
            {
                plugin.OnDestroy();
            }
        }
Beispiel #7
0
 public LocalBinder(MasterService masterService)
 {
     master_service = masterService;
 }
 public void OnDestroy()
 {
     StopPinging();
     master_service = null;
 }
 public void OnDestroy()
 {
     StopPinging();
     master_service = null;
 }
Beispiel #10
0
 public LocalBinder(MasterService masterService)
 {
     master_service = masterService;
 }