Beispiel #1
0
        /// <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;
        }
Beispiel #2
0
 /// <summary>
 /// Sets the broad cast strategy.
 /// </summary>
 /// <param name="broadCastStrategy">The broad cast strategy.</param>
 public void SetBroadCastStrategy(IBroadCastStrategy broadCastStrategy)
 {
     this.broadCastStrategy = broadCastStrategy;
 }
Beispiel #3
0
 /// <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;
 }