Esempio n. 1
0
        protected override Task ExecuteAsync(IRuleContext context)
        {
            // This method should have an error
            // because we call Complete().
            #region keep this
            context.Complete();
            #endregion
            context.AddDirtyProperty(null);
            context.Complete(); context.Complete();
            // Keep these comments!
            context.Complete(); /* And this one */

            context.Complete();
            return(Task.CompletedTask);
        }
Esempio n. 2
0
 protected override async Task ExecuteAsync(IRuleContext context)
 {
     context.AddDirtyProperty(null);
     await DummyAsync();
 }
Esempio n. 3
0
 protected override void Execute(IRuleContext context)
 {
     context.AddDirtyProperty(null);
 }