コード例 #1
0
ファイル: Config.cs プロジェクト: zhijia1122/rdkafka-dotnet
 /// <summary>
 /// Get or set a configuration value directly.
 ///
 /// See <see href="https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md">CONFIGURATION.md</see> for the full list of supported properties.
 /// </summary>
 /// <param name="name">The configuration property name.</param>
 /// <returns>The configuration property value.</returns>
 /// <exception cref="System.ArgumentException"><paramref name="value" /> is invalid.</exception>
 /// <exception cref="System.InvalidOperationException">Configuration property <paramref name="name" /> does not exist.</exception>
 public string this[string name]
 {
     set
     {
         handle.Set(name, value);
     }
     get
     {
         return(handle.Get(name));
     }
 }