示例#1
0
 /// <summary>
 ///     Registers Apache Kafka as message broker.
 /// </summary>
 /// <param name="brokerOptionsBuilder">
 ///     The <see cref="IBrokerOptionsBuilder" /> that references the <see cref="IServiceCollection" /> to
 ///     add the services to.
 /// </param>
 /// <returns>
 ///     The <see cref="IBrokerOptionsBuilder" /> so that additional calls can be chained.
 /// </returns>
 public static IBrokerOptionsBuilder AddKafka(this IBrokerOptionsBuilder brokerOptionsBuilder) =>
 brokerOptionsBuilder.AddBroker <KafkaBroker>();
 /// <summary>
 ///     Registers RabbitMQ as message broker.
 /// </summary>
 /// <param name="brokerOptionsBuilder">
 ///     The <see cref="IBrokerOptionsBuilder" /> that references the <see cref="IServiceCollection" /> to
 ///     add the services to.
 /// </param>
 /// <returns>
 ///     The <see cref="IBrokerOptionsBuilder" /> so that additional calls can be chained.
 /// </returns>
 public static IBrokerOptionsBuilder AddRabbit(this IBrokerOptionsBuilder brokerOptionsBuilder) =>
 brokerOptionsBuilder.AddBroker <RabbitBroker>();
示例#3
0
 /// <summary>
 ///     Registers Apache Mqtt as message broker.
 /// </summary>
 /// <param name="brokerOptionsBuilder">
 ///     The <see cref="IBrokerOptionsBuilder" /> that references the <see cref="IServiceCollection" /> to
 ///     add the services to.
 /// </param>
 /// <returns>
 ///     The <see cref="IBrokerOptionsBuilder" /> so that additional calls can be chained.
 /// </returns>
 public static IBrokerOptionsBuilder AddMqtt(this IBrokerOptionsBuilder brokerOptionsBuilder) =>
 brokerOptionsBuilder.AddBroker <MqttBroker>();