public void OnServiceConnected(ComponentName name, IBinder service) { Binder = service as TaskServiceBinder; IsConnected = Binder != null; if (IsConnected) { Binder.Service.RequestHandler += (a) => Request.Invoke(a); } }
public void OnServiceDisconnected(ComponentName name) { Binder = null; IsConnected = false; }