public RunnerConnection(RunnerBinder <T> binder) { if (binder != null) { Binder = binder; } }
public void OnServiceConnected(ComponentName name, IBinder service) { RunnerBinder <T> serviceBinder = service as RunnerBinder <T>; if (serviceBinder != null) { Binder = serviceBinder; Binder.IsBound = true; Binder.Service.StartRunner(); } }