コード例 #1
0
        public async Task SetIsEnabledAsync(ITableRow row, TaskContext context)
        {
            var authentication = context.Authentication;

            if (object.Equals(context.State, System.Data.DataRowState.Detached) == true)
            {
                return;
            }
            var isEnabled = RandomUtility.NextBoolean();
            await row.SetIsEnabledAsync(authentication, isEnabled);
        }