示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZreMailboxFactory"/> class.
 /// </summary>
 /// <param name="broadcastFactory">The broadcast factory.</param>
 public ZreMailboxFactory(IZreBroadcastFactory broadcastFactory = null)
 {
     _broadcastFactory = broadcastFactory ?? new ZreBroadcastFactory();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZreMailbox"/> class.
 /// </summary>
 /// <param name="broadcastFactory">The broadcast factory.</param>
 /// <param name="uuid">The UUID.</param>
 public ZreMailbox(IZreBroadcastFactory broadcastFactory, Guid? uuid = null)
 {
     _broadcastFactory = broadcastFactory;
     _uuid = uuid ?? Guid.NewGuid();
 }