SetPresence() private method

private SetPresence ( IPresence presence ) : void
presence IPresence
return void
Example #1
0
 public void AddAdHocPerson(Party party, String shortCode)
 {
     var attendance = new Attendance(party);
     var presence = Presence.AlwaysOn;
     presence.Resource = "_blitsme-" + shortCode;
     presence.ShortCode = shortCode;
     attendance.PropertyChanged += MarkUnmarkCurrentlyEngaged;
     attendance.SetPresence(presence);
     ServicePartyAttendanceList.Add(attendance);
     ServicePartyAttendanceLookup[attendance.Party.Username] = attendance;
 }
Example #2
0
 private void AddPartyToList(Party party, Presence presence)
 {
     var attendance = new Attendance(party);
     attendance.PropertyChanged += MarkUnmarkCurrentlyEngaged;
     if (presence != null)
     {
         attendance.SetPresence(presence);
     }
     ServicePartyAttendanceList.Add(attendance);
     ServicePartyAttendanceLookup[attendance.Party.Username] = attendance;
 }