Exemplo n.º 1
0
        public GossipChannelDecorator(ClusterBuilder builder, GossipChannelType channelType, string connectionString)
            : base(builder)
        {
            if (string.IsNullOrEmpty(connectionString))
            {
                throw new ArgumentNullException(nameof(connectionString));
            }

            _channelType      = channelType;
            _connectionString = connectionString;
        }
Exemplo n.º 2
0
 public static ClusterBuilder WithGossipChannel(this ClusterBuilder builder, GossipChannelType channelType, string connectionString)
 {
     return(new GossipChannelDecorator(builder, channelType, connectionString));
 }