protected override string V2GetTriggerString() { var format = Local.ResourceManager.GetString("TriggerSession" + StateChange.ToString()); var str2 = (string.IsNullOrEmpty(this.UserId) ? Local.TriggerAnyUser : UserId); if (StateChange != TaskSessionStateChangeType.SessionLock && StateChange != TaskSessionStateChangeType.SessionUnlock) { str2 = string.Format(Local.TriggerSessionUserSession, str2); } return(string.Format(format, str2)); }