EventLog

SignalR HubConnection.TraceWriter using Event Log

I needed a better way to Trace what my Windows Service was doing while communicating with my SignalR Hub.  Looking over HubConnection.TraceWriter it turns out that it's pretty easy to roll your own Event Log Writer..

After creating an instance of your HubConnection you set the TraceWriter like so

  • 开发人员
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8
  • .NET*
  • C#
  • 中级
  • SignalR
  • EventLog
  • HubConnection
  • 开发工具
  • 订阅 EventLog