Exemple #1
0
        protected void RenderSender(TextWriter writer)
        {
            MeetingMessage meetingMessage = base.Item as MeetingMessage;

            if (Utilities.IsOnBehalfOf(meetingMessage.Sender, meetingMessage.From))
            {
                RenderingUtilities.RenderSenderOnBehalfOf(meetingMessage.Sender, meetingMessage.From, writer, base.UserContext);
                return;
            }
            RenderingUtilities.RenderSender(base.UserContext, writer, meetingMessage.From);
        }
 public virtual void RenderSender(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (Utilities.IsOnBehalfOf(this.ActualSender, this.OriginalSender))
     {
         RenderingUtilities.RenderSenderOnBehalfOf(this.ActualSender, this.OriginalSender, writer, this.userContext);
         return;
     }
     RenderingUtilities.RenderSender(this.userContext, writer, this.OriginalSender);
 }
 // Token: 0x060006B5 RID: 1717 RVA: 0x00034A9C File Offset: 0x00032C9C
 internal static void RenderSender(UserContext userContext, TextWriter output, MessageItem message)
 {
     if (message == null)
     {
         throw new ArgumentNullException("message");
     }
     if (Utilities.IsOnBehalfOf(message.Sender, message.From))
     {
         RenderingUtilities.RenderSenderOnBehalfOf(message.Sender, message.From, output, userContext);
         return;
     }
     RenderingUtilities.RenderSender(userContext, output, message.Sender);
 }