-
-
Save ohager/6ff54be9b286be9f59d0c93e4f807643 to your computer and use it in GitHub Desktop.
.Net.Reactive meets C#7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Observable.Timer(new TimeSpan(0, 0, 1)) | |
.Do(async _ => await _service.ReserveToCommit(ConsumerIdentification.ConsumerId)) | |
.SelectMany(async _ => await _service.GetNewItemToCommit(ConsumerIdentification.ConsumerId)) | |
.Where(guid => guid != Guid.Empty) | |
.SelectMany(async guid => (userGroup: await _userGroupStagingService.GetWithAllChilds(guid), guid: guid)) | |
.Where(tuple => tuple.userGroup.Success) | |
.Subscribe(tuple => | |
{ | |
// ... do some stuff | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment