示例#1
0
 public Hub(HubState state, IUserTopic topic, ITimeProvider timeProvider)
 {
     _state        = state ?? throw new ArgumentNullException(nameof(state));
     _topic        = topic ?? throw new ArgumentNullException(nameof(topic));
     _timeProvider = timeProvider ?? throw new ArgumentNullException(nameof(timeProvider));
 }
示例#2
0
 public Hub(HubState state, IUserTopic topic)
     : this(state, topic, new SystemTimeProvider())
 {
 }