コード例 #1
0
        public static IStreamFlowTransport UseRabbitMq(this IStreamFlowTransport builder, Action <IStreamFlowRabbitMq> configure)
        {
            var rabbitMq = new StreamFlowRabbitMq(builder.Services, builder.Options);

            configure(rabbitMq);

            return(builder);
        }
コード例 #2
0
        public static IStreamFlowTransport WithOutboxSupport(this IStreamFlowTransport transport, Action <IStreamFlowOutbox> configure)
        {
            transport.Services.TryAddScoped <IOutboxPublisher, OutboxPublisher>();
            transport.Services.TryAddScoped <IOutboxMessageStore, PublisherOutboxMessageStore>();
            transport.Services.TryAddSingleton <IOutboxMessageAddressProvider, OutboxMessageAddressProvider>();

            var builder = new StreamFlowOutbox(transport);

            configure(builder);

            return(transport);
        }
コード例 #3
0
 public StreamFlowOutbox(IStreamFlowTransport transport)
 {
     _transport = transport;
 }