Azure / amqpnetlite

AMQP 1.0 .NET Library
Apache License 2.0
396 stars 141 forks source link

Transaction Support for SendAsync in .NET Core #557

Closed JinsPeter closed 1 year ago

JinsPeter commented 1 year ago

https://github.com/Azure/amqpnetlite/blob/5828b7f21c8dd240e0f9b7027ed38c684f8547bf/src/Net/TaskExtensions.cs#L205

I tried sending Messages in Transaction from a .NET Core application using the ISenderLink.SendAsync api. But this looks like turned off using

DeliveryState txnState = null;
#if NETFX || NETFX40
            txnState = await TaskExtensions.GetTransactionalStateAsync(this).ConfigureAwait(false);
#endif

Why is this? Why wouldn't a .NET Core application need Async sending support?