Exemplo n.º 1
0
        public static void PublishUserStoryUpdated(UserStory userStory)
        {
            var context = GetContext();
            context.Clients.userStoryUpdated(userStory);

            UserTracking.UserStoriesModified++;

            if (UserTracking.UserStoriesModified >= 3)
            {
                PublishUserMessage(UserMessages.UpdatedUserStories, true);
            }
        }
Exemplo n.º 2
0
        public static void PublishUserStoryCreated(UserStory newUserStory)
        {
            var context = GetContext();
            context.Clients.userStoryCreated(newUserStory);

            UserTracking.UserStoriesAdded++;

            if (UserTracking.UserStoriesAdded >= 3)
            {
                PublishUserMessage(UserMessages.AddedUserStories, true);
            }
        }