a guest Jun 14th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- private IEnumerable<DisconnectedPollingFanOutJobEntry> HostsAndGuestsView
- return Hosts
- .Select(e => e as DisconnectedPollingFanOutJobEntry)
- //because we are dotnet 3.5 we can't use covariances
- .Concat(Guests.Select(e => e as DisconnectedPollingFanOutJobEntry));
- //so this as good as it gets.
- and then i'd use it like
- while (!CancelQueue &&
- e =>
- e.DisconnectedJobState == DisconnectedPollingFanoutJobState.Pending ||
- e.DisconnectedJobState == DisconnectedPollingFanoutJobState.Running)
RAW Paste Data