/// <summary> /// Initializes a new instance of the <see cref="MemoryServiceMQ"/> class. /// </summary> public MemoryServiceMQ() { SimpleBroadCastStrategy strategy = new SimpleBroadCastStrategy(); strategy.OnLog += new LogHandler(WriteLog); this.broadCastStrategy = strategy; }
/// <summary> /// Sets the broad cast strategy. /// </summary> /// <param name="broadCastStrategy">The broad cast strategy.</param> public void SetBroadCastStrategy(IBroadCastStrategy broadCastStrategy) { this.broadCastStrategy = broadCastStrategy; }
/// <summary> /// Initializes a new instance of the <see cref="MemoryServiceMQ"/> class. /// </summary> /// <param name="broadCastStrategy">The broad cast strategy.</param> public MemoryServiceMQ(IBroadCastStrategy broadCastStrategy) { this.broadCastStrategy = broadCastStrategy; }