// Token: 0x060006B6 RID: 1718 RVA: 0x00034AEB File Offset: 0x00032CEB
 internal static void RenderSender(UserContext userContext, TextWriter output, PostItem post)
 {
     if (post == null)
     {
         throw new ArgumentNullException("post");
     }
     RenderingUtilities.RenderSender(userContext, output, post.Sender);
 }
示例#2
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);
 }
 // Token: 0x060006B8 RID: 1720 RVA: 0x00034CAC File Offset: 0x00032EAC
 internal static void RenderSenderOnBehalfOf(Participant representiveSender, Participant originalSender, TextWriter writer, UserContext userContext)
 {
     if (representiveSender == null)
     {
         throw new ArgumentNullException("representiveSender");
     }
     if (originalSender == null)
     {
         throw new ArgumentNullException("originalSender");
     }
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter = new SanitizingStringWriter <OwaHtml>())
     {
         using (SanitizingStringWriter <OwaHtml> sanitizingStringWriter2 = new SanitizingStringWriter <OwaHtml>())
         {
             RenderingUtilities.RenderSender(userContext, sanitizingStringWriter, representiveSender);
             RenderingUtilities.RenderSender(userContext, sanitizingStringWriter2, originalSender);
             writer.Write(LocalizedStrings.GetHtmlEncoded(-165544498), sanitizingStringWriter.ToSanitizedString <SanitizedHtmlString>(), sanitizingStringWriter2.ToSanitizedString <SanitizedHtmlString>());
         }
     }
 }
示例#6
0
 // Token: 0x06000604 RID: 1540 RVA: 0x000303A3 File Offset: 0x0002E5A3
 protected void RenderSender()
 {
     RenderingUtilities.RenderSender(base.UserContext, base.SanitizingResponse, this.message);
 }