Exemplo n.º 1
0
        public static async Task CreateUserActivityAsync(UserActivityData activityData, IAdaptiveCard adaptiveCard)
        {
            var activity = await activityData.ToUserActivity();

            activity.VisualElements.Content = adaptiveCard;
            await SaveAsync(activity);
        }
Exemplo n.º 2
0
        public static async Task CreateUserActivityAsync(UserActivityData activityData)
        {
            var activity = await activityData.ToUserActivity();

            // Cleanup any content assigned earlier
            activity.VisualElements.Content = null;
            await SaveAsync(activity);
        }