protected virtual Task InitializeAsync(StatementContext context) { return(Task.CompletedTask); }
protected virtual Task AfterLoopAsync(StatementContext context) { return(Task.CompletedTask); }
protected override Task ExecuteStatementAsync(StatementContext context) { throw new NotImplementedException(); }
protected virtual Task <bool> CanLoopAsync(StatementContext context) { return(Task.FromResult(!HasControl || ControlType != LoopControlType.Exit)); }
protected abstract Task ExecuteStatementAsync(StatementContext context);
protected override Task ExecuteStatementAsync(StatementContext context) { return(Task.CompletedTask); }
async Task <bool> IAlterUserAction.AlterUserAsync(string userName, StatementContext context) { var securityManager = context.GetUserManager(); return(await securityManager.SetUserStatusAsync(userName, NewStatus)); }
async Task <bool> IAlterUserAction.AlterUserAsync(string userName, StatementContext context) { var securityManager = context.GetUserManager(); return(await securityManager.SetIdentificationAsync(userName, new PasswordIdentificationInfo(NewPassword))); }
protected override async Task ExecuteStatementAsync(StatementContext context) { var result = await Value.ReduceToConstantAsync(context); context.Return(result); }