@@ -680,6 +680,7 @@ public LocationInfo LocationInformation
680680 public object MessageObject
681681 {
682682 get { return m_message ; }
683+ protected set { m_message = value ; }
683684 }
684685
685686 /// <summary>
@@ -743,7 +744,7 @@ internal void EnsureRepository(ILoggerRepository repository)
743744 /// The collected information is cached for future use.
744745 /// </para>
745746 /// </remarks>
746- public string RenderedMessage
747+ public virtual string RenderedMessage
747748 {
748749 get
749750 {
@@ -785,7 +786,7 @@ public string RenderedMessage
785786 /// to be accessed multiple times then the property will be more efficient.
786787 /// </para>
787788 /// </remarks>
788- public void WriteRenderedMessage ( TextWriter writer )
789+ public virtual void WriteRenderedMessage ( TextWriter writer )
789790 {
790791 if ( m_data . Message != null )
791792 {
@@ -1357,7 +1358,7 @@ public void FixVolatileData(bool fastButLoose)
13571358 /// It is not possible to 'unfix' a field.
13581359 /// </para>
13591360 /// </remarks>
1360- protected void FixVolatileData ( FixFlags flags )
1361+ protected virtual void FixVolatileData ( FixFlags flags )
13611362 {
13621363 object forceCreation = null ;
13631364
@@ -1641,7 +1642,7 @@ public PropertiesDictionary GetProperties()
16411642 /// <summary>
16421643 /// The application supplied message of logging event.
16431644 /// </summary>
1644- private readonly object m_message ;
1645+ private object m_message ;
16451646
16461647 /// <summary>
16471648 /// The exception that was thrown.
0 commit comments