コード例 #1
0
 private Task<IValueProvider> BindAsync(CancellationToken token, ValueBindingContext context)
 {
     IValueProvider provider = new CancellationTokenValueProvider(token);
     return Task.FromResult(provider);
 }
コード例 #2
0
        private Task <IValueProvider> BindAsync(CancellationToken token, ValueBindingContext context)
        {
            IValueProvider provider = new CancellationTokenValueProvider(token);

            return(Task.FromResult(provider));
        }