Namespace: Azure.Messaging.ServiceBus
I am using a transaction scope around my ServiceBusSender.SendMessageAsync operation and getting "Local transactions are not supported with other resource managers/DTC."
Can transaction scopes be used with Azure Service Bus?
Current scope:
using (var transaction = new TransactionScope(
TransactionScopeOption.Required,
new TransactionOptions
{
IsolationLevel = IsolationLevel.Serializable
},
TransactionScopeAsyncFlowOption.Enabled))
{
try
{
// do a database operation
// do azure bus sendmessageasync
}
catch
{
transaction.Dispose();
throw;
}
}
Cross entity transactions are possible with
Azure.Messaging.ServiceBus(track 2) SDK.