Task-Based Asynchronous Pattern
The task-based asynchronous pattern is the preferred way to implement asynchronous operations because it is the easiest and most straight forward. To use this method simply implement your service operation and specify a return type of Task'<'T'>', where T is the type returned by the logical operation. For example in C#:
public class SampleService:ISampleService
{
public async Task<string> SampleMethodTaskAsync(string msg)
{
return Task<string>.Factory.StartNew(() =>
{
return msg;
});
}
}
The SampleMethodTaskAsync operation returns Task '<'string'>' because the logical operation returns a string. For more information about the task-based asynchronous pattern, see The Task-Based Asynchronous Pattern.
In my case I am unfamiliar with "AsyncUpload in telerik function" but I'm sure it will be a bandwidth issue at some point.