public sealed class TransactionScopeContext : ITransactionScopeContextPublic NotInheritable Class TransactionScopeContext
Implements ITransactionScopeContextpublic ref class TransactionScopeContext sealed : ITransactionScopeContext[<SealedAttribute>]
type TransactionScopeContext =
class
interface ITransactionScopeContext
endif (TransactionScopeContext.HasCurrent)
{
TransactionScopeContext.Current.Handlers.Add(async ctx =>
{
if (ctx.IsCommited)
{
await ctx.DbScope.Db.SetCommand(...)
.LogCommand()
.ExecuteNonQueryAsync(ctx.CancellationToken);
}
});
}| TransactionScopeContext | Инициализирует новый экземпляр класса TransactionScopeContext |
| Current | Текущий контекст ITransactionScopeContext. |
| Handlers | Обработчики транзакции, выполняемые после завершения транзакции. |
| HasCurrent | Признак того, что текущий код выполняется внутри операции с контекстом ITransactionScopeContext, а свойство Current ссылается на действительный контекст. |
| Info | Дополнительная информация. Передаётся в обработчики, выполняемые при завершении транзакции. |
| Create | Создаёт область операции, в которой заданный контекст будет являться текущим. |
| Equals | Determines whether the specified object is equal to the current object. (Унаследован от Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object) |
| GetHashCode | Serves as the default hash function. (Унаследован от Object) |
| GetType | Gets the Type of the current instance. (Унаследован от Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object) |
| ToString | Returns a string that represents the current object. (Унаследован от Object) |
| Get | (Определяется ComHelper) |
| InternalMarkerCanvas |
Возвращает маркер аннотации
(Определяется AnnotationInternalsAccessor) |
| Invoke | (Определяется ComHelper) |
| Set | (Определяется ComHelper) |