예제 #1
0
파일: Program.cs 프로젝트: ktaranov/RTVS
        public async Task <LocatorResult> Locator(CancellationToken ct)
        {
            await Console.Error.WriteLineAsync("Locator called.");

            return(LocatorResult.CreateNotClicked());
        }
예제 #2
0
        public async Task <LocatorResult> Locator(Guid deviceId, CancellationToken ct)
        {
            await Console.Error.WriteLineAsync(Invariant($"Locator called for {deviceId}."));

            return(LocatorResult.CreateNotClicked());
        }
예제 #3
0
        public void EndLocatorMode(LocatorResult result) {
            _shell.AssertIsOnMainThread();

            var tcs = _locatorTcs;
            _locatorTcs = null;
            tcs?.SetResult(result);

            LocatorMode = false;
            LocatorModeChanged?.Invoke(this, EventArgs.Empty);

            _device.LocatorMode = LocatorMode;
        }