/// <summary>An application has new outstanding requests.</summary> /// <param name="user">application user</param> /// <param name="applicationId">activated application</param> public virtual void ActivateApplication(string user, ApplicationId applicationId) { lock (this) { ICollection <ApplicationId> userApps = usersApplications[user]; if (userApps == null) { userApps = new HashSet <ApplicationId>(); usersApplications[user] = userApps; ++activeUsers; metrics.IncrActiveUsers(); Log.Debug("User " + user + " added to activeUsers, currently: " + activeUsers); } if (userApps.AddItem(applicationId)) { metrics.ActivateApp(user); } } }