Created
May 4, 2020 19:05
-
-
Save Odonno/c55b4d8149639fbb6797b3dc1b4e5233 to your computer and use it in GitHub Desktop.
ServerToClient.ToBufferedStream.cs
This file contains hidden or 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
public ChannelReader<Weather> RealtimeWeather() | |
{ | |
return _realtimeValuesService.Observe() | |
.ToBufferedStream(Context.ConnectionAborted); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment