2using System.Collections.Generic;
3using System.Threading.Tasks;
15 private readonly
static List<ITransactions> transactions =
new List<ITransactions>();
16 private static bool running =
false;
62 return Task.CompletedTask;
76 Collections = transactions.ToArray();
Static class managing the application event log. Applications and services log events on this static ...
static void Exception(Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
Logs an exception. Event type will be determined by the severity of the exception.
Module making sure no unfinished transactions are left when system ends.
static void Register(ITransactions Transactions)
Registers a collection of transactions with the module.
static bool Running
If the transaction module is running.
Task Start()
Starts the module.
async Task Stop()
Stops the module.
static bool Unregister(ITransactions Transactions)
Unregisters a collection of transactions with the module.
TransactionModule()
Module making sure no unfinished transactions are left when system ends.
Maintains a collection of active transactions.
void Dispose()
Rolls back any pending transactions and disposes of the object.
Task< ITransaction[]> GetTransactions()
Gets pending transactions.
Interface for late-bound modules loaded at runtime.
Interface for transactions
Task Abort()
Aborts the transaction.
Interface for collections of transactions that can be monitored by TransactionModule.