2 instantiations of WeatherReport
SocialWeather (2)
Pipe\PipeWeatherStreamFormatter.cs (1)
41
return new
WeatherReport
Protobuf\ProtobufWeatherStreamFormatter.cs (1)
15
return Task.FromResult(new SocialWeather.
WeatherReport
12 references to WeatherReport
SocialWeather (12)
Pipe\PipeWeatherStreamFormatter.cs (3)
8
public class PipeWeatherStreamFormatter : IStreamFormatter<
WeatherReport
>
10
public async Task<
WeatherReport
> ReadAsync(Stream stream)
50
public async Task WriteAsync(
WeatherReport
report, Stream stream)
Protobuf\ProtobufWeatherStreamFormatter.cs (3)
8
public class ProtobufWeatherStreamFormatter : IStreamFormatter<SocialWeather.
WeatherReport
>
10
public Task<SocialWeather.
WeatherReport
> ReadAsync(Stream stream)
24
public async Task WriteAsync(SocialWeather.
WeatherReport
weatherReport, Stream stream)
SocialWeatherConnectionHandler.cs (2)
32
var formatter = _formatterResolver.GetFormatter<
WeatherReport
>(
47
var
weatherReport = await formatter.ReadAsync(stream);
Startup.cs (4)
39
formatterResolver.AddFormatter<
WeatherReport
, JsonStreamFormatter<
WeatherReport
>>("json");
40
formatterResolver.AddFormatter<
WeatherReport
, ProtobufWeatherStreamFormatter>("protobuf");
41
formatterResolver.AddFormatter<
WeatherReport
, PipeWeatherStreamFormatter>("pipe");