コード例 #1
0
        public static async Task InitializeRandomAsync(this ITableTemplate template, Authentication authentication)
        {
            var tableName = GenerateTableName(template);
            await template.SetTableNameAsync(authentication, tableName);

            if (RandomUtility.Within(50) == true)
            {
                await template.SetTagsAsync(authentication, (TagInfo)TagInfoUtility.Names.Random());
            }
            if (RandomUtility.Within(50) == true)
            {
                await template.SetCommentAsync(authentication, RandomUtility.NextString());
            }
            await template.AddRandomColumnsAsync(authentication);
        }
コード例 #2
0
 public async Task SetTagsAsync(ITableTemplate template, TaskContext context)
 {
     var authentication = context.Authentication;
     var tags           = (TagInfo)TagInfoUtility.Names.Random();
     await template.SetTagsAsync(authentication, tags);
 }