Beispiel #1
0
        public override Task <object[]> StartQueryMetadata(string text, out CancellationToken token)
        {
            VerifyAccess();

            if (this.queryCancellationToken != null)
            {
                this.queryCancellationToken.Cancel();
            }
            this.queryCancellationToken = new CancellationTokenSource();
            token = this.queryCancellationToken.Token;

            return(MovieInfo.StartQueryMetadata(text, token).ContinueWith(t => (object[])t.Result, token));
        }