Is Active Directory transaction-aware?

后端 未结 2 1563
余生分开走
余生分开走 2021-02-07 09:50

Simple question but I can\'t find the answer anywhere: is Active Directory transaction-aware?

In other words, will the following change be rolled back (since I didn\'t c

2条回答
  •  一个人的身影
    2021-02-07 10:27

    No. LDAP doesn't directly support transactions, however, it is possible to 'roll your own' solution by writing an enlistment class that implements the IEnlistmentNotification Interface. IEnlistmentNotification works with both explicit and implicit transactions in the System.Transactions namespace.

    You can find more documentation (and an example) here: https://msdn.microsoft.com/en-us/library/system.transactions.ienlistmentnotification(v=vs.110).aspx

提交回复
热议问题