public BeaconServiceConnection(BeaconServiceBinder binder)
 {
     if(binder!=null)
     {
         this.binder = binder;
     }
 }
        public void OnServiceConnected(ComponentName name, IBinder service)
        {
            BeaconServiceBinder serviceBinder = service as
      BeaconServiceBinder;

            if (serviceBinder != null)
            {
                this.binder = serviceBinder;
                this.binder.IsBound = true;


                this.ServiceConnected(this, new ServiceConnectedEventArgs() { Binder = service });
                // start beacon service here
            }
        }