private Execute ( long requestID, string stepName, string stepLocation ) : void | ||
requestID | long | |
stepName | string | |
stepLocation | string | |
return | void |
public virtual void StoreExecutedScript(SqlScript script, Func <IDbCommand> db) { var name = NameWithHash.FromScript(script); db.Execute(GetDeleteScriptSql(), new { scriptName = name.PlainName }); db.Execute(GetInsertScriptSql(), new { scriptName = name.PlainName, contentsHash = name.ContentsHash }); }
public virtual void EnsureTableExistsAndIsLatestVersion(Func <IDbCommand> db) { if (DoesTableExist()) { return; } db.Execute(CreateSchemaTableSql()); }
public string Execute() { if (Func != null) { return(Func.Execute(_parameter)); } return(string.Empty); }
public static Response <T> Handle <T>(Func <T> action) { var response = new Response <T>(); try { response.Result = action.Execute <T>(); if (!response.Error.IsNull()) { SetFailure(response, response.Error); } } catch (Exception ex) { SetFailure(response, ex.Message); } return(response); }
public void Execute1() { Func <int> Temp = () => 1; Assert.DoesNotThrow(() => Temp.Execute()); }
public void Execute1() { Func <int> Temp = () => 1; Temp.Execute(); }
public static IState <TR, TError> Decorate <T, TR, TError>(this Func <IState <T, TError> > method, Func <IState <T, TError>, TR> target, Action onDoing, Action onDone, Action <Exception, ILogger> exceptionHandler) => method.Execute(out IState <T, TError> state) ? TryCatch(state, target, onDoing, onDone, exceptionHandler) : state.Fail <TR>();
public static IState <TError> Decorate <T, TError>(this Func <IState <T, TError> > step, Action <IState <T, TError> > target, Action onDoing, Action onDone, Action <Exception, ILogger> exceptionHandler) => step.Execute(out IState <T, TError> state) ? TryCatch(state, target, onDoing, onDone, exceptionHandler) : state.Fail();