Ancestry.Daisy.Tests.Daisy.Performance.SilverBulletHandlers.TimestampBeforeYearsAgoSilverBullet.Execute C# (CSharp) Method

Execute() public method

public Execute ( InvokationContext context ) : bool
context Ancestry.Daisy.Statements.InvokationContext
return bool
        public override bool Execute(InvokationContext context)
        {
            var value = int.Parse(context.Match.Groups[1].Captures[0].Value);

            return new TransactionController{
                Scope = (Transaction)context.Scope,
                Attachments = context.Attachments,
                Context = context.Context
            }.TimestampBeforeYearsAgo(value);
        }
TimestampBeforeYearsAgoSilverBullet