Execute() private method

private Execute ( long requestID, string stepName, string stepLocation ) : void
requestID long
stepName string
stepLocation string
return void
Ejemplo n.º 1
0
        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
            });
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 7
0
 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>();
Ejemplo n.º 8
0
 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();