public override void Run() { try { int location = Scene.GetComponent <LocationComponent>().Get(key); this.tcs.SetResult(location); } catch (Exception e) { this.tcs.SetException(e); } }
public override void Run() { try { Scene.GetComponent <LocationComponent>().Lock(this.key, this.lockAppId, this.time); this.tcs.SetResult(true); } catch (Exception e) { this.tcs.SetException(e); } }