Exemplo n.º 1
0
		/// <summary>
		/// Set the <see cref="ChatConnectionStringBuilder"/> for the <see cref="ChatBot"/>. Also updates the <see cref="ConnectionString"/>.
		/// </summary>
		/// <param name="stringBuilder">The optional <see cref="ChatConnectionStringBuilder"/>.</param>
		public void SetConnectionStringBuilder(ChatConnectionStringBuilder stringBuilder)
		{
			ConnectionString = stringBuilder?.ToString() ?? throw new ArgumentNullException(nameof(stringBuilder));
		}
Exemplo n.º 2
0
 /// <summary>
 /// Set the <see cref="ChatConnectionStringBuilder"/> for the <see cref="ChatBot"/>. Also updates the <see cref="ConnectionString"/>.
 /// </summary>
 /// <param name="stringBuilder">The optional <see cref="ChatConnectionStringBuilder"/>.</param>
 public void SetConnectionStringBuilder(ChatConnectionStringBuilder stringBuilder)
 {
     ConnectionString = stringBuilder?.ToString();
 }