Author: dpsenner
Date: Tue May 28 12:03:12 2013
New Revision: 1486895

URL: http://svn.apache.org/r1486895
Log:
LOG4NET-318 add [SecuritySafeCritical] attribute to the Attach method of the 
RemoteLoggingServerPlugin

According to 
http://stackoverflow.com/questions/8297419/log4net-doesnt-pass-verification-when-compiling
 this should fix
the PEVerify issue reported.

Modified:
    logging/log4net/trunk/src/Plugin/RemoteLoggingServerPlugin.cs

Modified: logging/log4net/trunk/src/Plugin/RemoteLoggingServerPlugin.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/trunk/src/Plugin/RemoteLoggingServerPlugin.cs?rev=1486895&r1=1486894&r2=1486895&view=diff
==============================================================================
--- logging/log4net/trunk/src/Plugin/RemoteLoggingServerPlugin.cs (original)
+++ logging/log4net/trunk/src/Plugin/RemoteLoggingServerPlugin.cs Tue May 28 
12:03:12 2013
@@ -119,6 +119,9 @@ namespace log4net.Plugin
                /// This method is called when the plugin is attached to the 
repository.
                /// </para>
                /// </remarks>
+#if NET_4_0
+               [System.Security.SecuritySafeCritical]
+#endif
                override public void Attach(ILoggerRepository repository)
                {
                        base.Attach(repository);


Reply via email to