System.Net.Http.HttpContent.LoadIntoBufferAsync C# (CSharp) Метод

LoadIntoBufferAsync() публичный Метод

public LoadIntoBufferAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task
		public Task LoadIntoBufferAsync ()
		{
			return LoadIntoBufferAsync (int.MaxValue);
		}

Same methods

HttpContent::LoadIntoBufferAsync ( long maxBufferSize ) : System.Threading.Tasks.Task

Usage Example

 private static string ReadContentAsync(HttpContent content)
 {
     Task task = content.LoadIntoBufferAsync();
     task.Wait(TimeoutConstant.DefaultTimeout);
     Assert.Equal(TaskStatus.RanToCompletion, task.Status);
     return content.ReadAsStringAsync().Result;
 }
All Usage Examples Of System.Net.Http.HttpContent::LoadIntoBufferAsync