public GossipChannelDecorator(ClusterBuilder builder, GossipChannelType channelType, string connectionString) : base(builder) { if (string.IsNullOrEmpty(connectionString)) { throw new ArgumentNullException(nameof(connectionString)); } _channelType = channelType; _connectionString = connectionString; }
public static ClusterBuilder WithGossipChannel(this ClusterBuilder builder, GossipChannelType channelType, string connectionString) { return(new GossipChannelDecorator(builder, channelType, connectionString)); }