public Task CopyToAsync(Stream stream, CancellationToken cancellationToken) { if (_enableFileBuffer) { return(CopyFileTo(_tempFilePath, stream, cancellationToken)); } return(_multicastStream.CopyToAsync(stream, cancellationToken)); //return CopyFileTo(_tempFilePath, stream, cancellationToken); }
public Task CopyToAsync(Stream stream, CancellationToken cancellationToken) { return(_multicastStream.CopyToAsync(stream)); }