I have an interface ISFactory
as follows.
namespace MyApp.ViewModels
{
public interface IStreamFactory
{
Stream CreateSPStream(strin
The best approach is to make the method async
, as the compiler error indicates:
public async Task CreateSerialPortStreamAsync(string serialPortName)
This will require the interface to change as well:
Task CreateSerialPortStreamAsync(string serialPortName);
And yes, all callers of this method will need to be updated.