Пример #1
0
        public async Task CreateSocialLoginHistoryRecordAsync(StoreAgent storeAgent, string account, string channel, string channelId, string platform, string action, DateTime timeStart)
        {
            var entity = new SocialLoginHistoryTableEntity(account, channel, channelId, platform, action, timeStart);

            var client = storeAgent.StorageAccount.CreateCloudTableClient();

            // Tablename change with account
            var tablename = StoreManager.UserInfoHistoryTableName + account;
            var table     = client.GetTableReference(tablename);
            await SocialLoginHistoryTableEntity.InsertSocialLoginHistoryTableEntity(table, entity);
        }
 internal static async Task InsertSocialLoginHistoryTableEntity(CloudTable table, SocialLoginHistoryTableEntity summary)
 {
     var operation   = TableOperation.Insert(summary);
     var tableInsert = table.ExecuteAsync(operation);
     await Task.CompletedTask;
 }