<pre lang="C#">
using System.Reactive.Linq;
class cronJobCallingApi
{
IDisposable subscription = Observable.Interval(TimeSpan.FromMinutes(5.0)).SelectMany(_ => Observable.FromAsync(
() => {
createRoomReservation();
...
}))
.Subscribe();
public static async Task createRoomReservation()
{
}
I have 4 error
#1 'Task<>' claims it is defined in 'System.Runtime',
#2 Reference to type 'CancellationToken' claims it is defined in 'System.Runtime', but it could not be found
#3 The type 'IAsyncOperation<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Windows.SDK.NET, Version=10.0.19041.10
#4 The type 'IAsyncOperationWithProgress<,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Windows.SDK.NET, Version=10.0.19041.10