private void StreamService_DataReceivedEvent(object sender, EventArgs e) { try { SampledStreamService.DataReceivedEventArgs eventArgs = e as SampledStreamService.DataReceivedEventArgs; SampledStreamModel model = eventArgs.StreamDataResponse; Task.Run(() => cache.AddTweet(model)); } catch (Exception) { throw; } }
private static void StreamService_DataReceivedEvent(object sender, EventArgs e) { SampledStreamService.DataReceivedEventArgs eventArgs = e as SampledStreamService.DataReceivedEventArgs; SampledStreamModel model = eventArgs.StreamDataResponse; }