Do Azure storage-related APIs participate in System.Transactions?

前端 未结 1 942
無奈伤痛
無奈伤痛 2020-12-11 05:21

I can\'t find any information on this anywhere and yet the question is simple.

Can I wrap storage-related actions in a TransactionScope such that e.g. i

1条回答
  •  無奈伤痛
    2020-12-11 05:54

    If you're referring to Table or Blob updates, there's no notion of explicit commit or rollback. When you make an API call (whether direct REST call or via PowerShell / CLI / SDK), it's just an action against storage, and it will either succeed or fail (although some actions take a while and the call may return before completion). There's no transaction scope wrapping this action. You'd need to take care of undoing your Table / Blob updates at an app level.

    0 讨论(0)
提交回复
热议问题