public async Task MyMethod2( IMyInterface dependency, CancellationToken cancellationToken) { await dependency.MyAsyncOperation2(cancellationToken); await dependency.MyAsyncOperation2(cancellationToken); }
public static Task MyAsyncOperation3( this IMyInterface myInterface, CancellationToken cancellationToken) => myInterface.MyAsyncOperation2(cancellationToken);