Beispiel #1
0
        public async Task SetIndexAsync(ITableColumn column, TaskContext context)
        {
            var authentication = context.Authentication;

            if (context.AllowException == false)
            {
                if (object.Equals(context.State, System.Data.DataRowState.Detached) == true)
                {
                    return;
                }
            }
            var index = RandomUtility.Next(column.Template.Count);
            await column.SetIndexAsync(authentication, index);
        }