Exemple #1
0
 public static TResult Execute <TResult>(Func <CustomDataContext, TResult> action, _DCTGroup group = _DCTGroup.None, object[] parameters = null, string comment = "", bool logInfo = true, Action <CustomDataContext, Exception> continueExceptionMethod = null, Action <CustomDataContext> continueMethod = null)
 {
     return(DCT <CustomDataContext> .Execute <TResult>(action, group, parameters, comment, logInfo : logInfo, continueExceptionMethod : continueExceptionMethod, continueMethod : continueMethod));
 }
Exemple #2
0
 /// <summary>
 /// Асинхронное выполенение метода, без заморочек просто Task
 /// </summary>
 /// <param name="action"></param>
 public static void ExecuteCurrentDispatcher(Action <CustomDataContext> action, System.Enum group = null, object[] parameters = null, string comment = "", bool logInfo = true, Action <CustomDataContext, Exception> continueExceptionMethod = null, Action <CustomDataContext> continueMethod = null)
 {
     DCT <CustomDataContext> .ExecuteCurrentDispatcher(action, group, parameters, comment, logInfo : logInfo, continueExceptionMethod : continueExceptionMethod, continueMethod : continueMethod);
 }
Exemple #3
0
 /// <summary>
 /// Выполенение метода, для возврата значение используем стандартную обёртку с внешней переменной
 /// </summary>
 /// <param name="action"></param>
 public static void Execute(Action <CustomDataContext> action, _DCTGroup group = _DCTGroup.None, object[] parameters = null, string comment = "", bool logInfo = true, Action <CustomDataContext, Exception> continueExceptionMethod = null, Action <CustomDataContext> continueMethod = null)
 {
     DCT <CustomDataContext> .Execute(action, group, parameters, comment, logInfo : logInfo, continueExceptionMethod : continueExceptionMethod, continueMethod : continueMethod);
 }