TfsHipChat.Tfs.Events.CheckinEvent.GetCommitterName C# (CSharp) Method

GetCommitterName() public method

public GetCommitterName ( ) : string
return string
        public string GetCommitterName()
        {
            if (CommitterDisplay != null && CommitterDisplay.Trim().Length > 0)
            {
                return CommitterDisplay;
            }

            var formatter = new StandardDomainUserNameFormatter();
            return formatter.ToDisplayName(Committer);
        }

Usage Example

 public void SendCheckinNotification(CheckinEvent checkinEvent, int roomId)
 {
     var message = string.Format("{0} checked in changeset <a href=\"{1}\">{2}</a> ({4})<br>{3}",
         checkinEvent.GetCommitterName(), checkinEvent.GetChangesetUrl(), checkinEvent.Number,
         checkinEvent.Comment.Replace("\n", "<br>"), checkinEvent.TeamProject);
     _hipChatClient.RoomId = roomId;
     _hipChatClient.SendMessage(message, HipChatClient.BackgroundColor.yellow);
 }
All Usage Examples Of TfsHipChat.Tfs.Events.CheckinEvent::GetCommitterName