Пример #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;
        }
Пример #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;
 }
Пример #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;
 }