http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiAppender.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiAppender.cs b/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiAppender.cs index a239883..041701c 100644 --- a/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiAppender.cs +++ b/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiAppender.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -37,7 +37,7 @@ namespace log4net.Appender /// each <see cref="LoggingEvent"/>. /// </para> /// <para> - /// By default this appender fires <see cref="WmiLoggingEvent"/> objects, however + /// By default this appender fires <see cref="WmiLoggingEvent"/> objects, however /// this can be overridden by specifying a custom <see cref="Layout"/> or by setting /// the <see cref="LoggingEvent"/>.<see cref="LoggingEvent.MessageObject"/> to an /// <see cref="IEvent"/> instance. @@ -107,7 +107,7 @@ namespace log4net.Appender /// The name uniquely identifies the appender. /// </para> /// </remarks> - public string Name + public string Name { get { return m_name; } set { m_name = value; } @@ -117,11 +117,11 @@ namespace log4net.Appender /// Gets or sets the threshold <see cref="Level"/> of this appender. /// </summary> /// <value> - /// The threshold <see cref="Level"/> of the appender. + /// The threshold <see cref="Level"/> of the appender. /// </value> /// <remarks> /// <para> - /// All log events with lower level than the threshold level are ignored + /// All log events with lower level than the threshold level are ignored /// by the appender. /// </para> /// <para> @@ -130,7 +130,7 @@ namespace log4net.Appender /// string, such as "DEBUG", "INFO" and so on. /// </para> /// </remarks> - public Level Threshold + public Level Threshold { get { return m_threshold; } set { m_threshold = value; } @@ -161,18 +161,18 @@ namespace log4net.Appender /// The default value is a <see cref="OnlyOnceErrorHandler"/>. /// </para> /// </remarks> - public IErrorHandler ErrorHandler + public IErrorHandler ErrorHandler { get { return m_errorHandler; } - set + set { - if (value == null) + if (value == null) { // We do not throw exception here since the cause is probably a // bad config file. log4net.Util.LogLog.Warn(GetType(), "WmiAppender: You have tried to set a null error-handler."); - } - else + } + else { m_errorHandler = value; } @@ -190,7 +190,7 @@ namespace log4net.Appender /// method will create a default <see cref="WmiLayout"/> instance. /// </para> /// </remarks> - public void ActivateOptions() + public void ActivateOptions() { if (m_layout == null) { @@ -247,7 +247,7 @@ namespace log4net.Appender /// <summary> /// Checks if the message level is below this appender's threshold. /// </summary> - private bool IsAsSevereAsThreshold(Level level) + private bool IsAsSevereAsThreshold(Level level) { return ((m_threshold == null) || level >= m_threshold); }
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiInstaller.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiInstaller.cs b/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiInstaller.cs index 03bb865..3964d33 100644 --- a/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiInstaller.cs +++ b/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiInstaller.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLayout.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLayout.cs b/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLayout.cs index eaf51d8..810cd73 100644 --- a/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLayout.cs +++ b/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLayout.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -32,7 +32,7 @@ namespace log4net.Appender /// <returns>an instrumentation event that can be fired</returns> /// <remarks> /// <para> - /// If the <see cref="LoggingEvent.MessageObject"/> of the + /// If the <see cref="LoggingEvent.MessageObject"/> of the /// <paramref name="loggingEvent" /> is an <see cref="IEvent"/> then /// that instance is returned. If the instance also implements the /// <see cref="IWmiBoundEvent"/> interface then the <see cref="IWmiBoundEvent.Bind"/> @@ -40,7 +40,7 @@ namespace log4net.Appender /// parameter. /// </para> /// <para> - /// If the <see cref="LoggingEvent.MessageObject"/> of the + /// If the <see cref="LoggingEvent.MessageObject"/> of the /// <paramref name="loggingEvent" /> is not an <see cref="IEvent"/> /// then the <see cref="CreateEvent"/> method will be called /// to create an appropriate instrumentation event object. @@ -78,7 +78,7 @@ namespace log4net.Appender /// instance using the data from the <paramref name="loggingEvent" />. /// </para> /// <para> - /// Subclasses should override this method to return their own custom + /// Subclasses should override this method to return their own custom /// instrumentation event object. /// </para> /// </remarks> http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLoggingEvent.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLoggingEvent.cs b/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLoggingEvent.cs index 72efdc8..68802d5 100644 --- a/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLoggingEvent.cs +++ b/examples/net/2.0/Appenders/WmiAppender/cs/src/WmiLoggingEvent.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/AssemblyInfo.cs b/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/AssemblyInfo.cs index 04c4115..f525fe8 100644 --- a/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net extensibility test - EventIDLogApp")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - EventIDLogApp")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/EventIDLogApp.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/EventIDLogApp.cs b/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/EventIDLogApp.cs index 4406a90..05846f6 100644 --- a/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/EventIDLogApp.cs +++ b/examples/net/2.0/Extensibility/EventIDLogApp/cs/src/EventIDLogApp.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Extensibility/TraceLogApp/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Extensibility/TraceLogApp/cs/src/AssemblyInfo.cs b/examples/net/2.0/Extensibility/TraceLogApp/cs/src/AssemblyInfo.cs index f0acd13..3ea8dc4 100644 --- a/examples/net/2.0/Extensibility/TraceLogApp/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Extensibility/TraceLogApp/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net extensibility test - TraceLogApp")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - TraceLogApp")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Extensibility/TraceLogApp/cs/src/TraceLogApp.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Extensibility/TraceLogApp/cs/src/TraceLogApp.cs b/examples/net/2.0/Extensibility/TraceLogApp/cs/src/TraceLogApp.cs index 633343f..2fda462 100644 --- a/examples/net/2.0/Extensibility/TraceLogApp/cs/src/TraceLogApp.cs +++ b/examples/net/2.0/Extensibility/TraceLogApp/cs/src/TraceLogApp.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/AssemblyInfo.cs b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/AssemblyInfo.cs index 441569d..bbb175b 100644 --- a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net SampleLayoutsApp")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - SampleLayoutsApp")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/ForwardingLayout.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/ForwardingLayout.cs b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/ForwardingLayout.cs index 1727bae..cb45880 100644 --- a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/ForwardingLayout.cs +++ b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/ForwardingLayout.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -54,13 +54,13 @@ namespace SampleLayoutsApp.Layout /// <remarks> /// <para> /// This is part of the <see cref="IOptionHandler"/> delayed object - /// activation scheme. The <see cref="ActivateOptions"/> method must + /// activation scheme. The <see cref="ActivateOptions"/> method must /// be called on this object after the configuration properties have /// been set. Until <see cref="ActivateOptions"/> is called this - /// object is in an undefined state and must not be used. + /// object is in an undefined state and must not be used. /// </para> /// <para> - /// If any of the configuration properties are modified then + /// If any of the configuration properties are modified then /// <see cref="ActivateOptions"/> must be called again. /// </para> /// <para> @@ -100,7 +100,7 @@ namespace SampleLayoutsApp.Layout } /// <summary> - /// The content type output by this layout. + /// The content type output by this layout. /// </summary> /// <value>The content type is <c>"text/plain"</c></value> /// <remarks> @@ -115,13 +115,13 @@ namespace SampleLayoutsApp.Layout /// </remarks> virtual public string ContentType { - get + get { if (m_nestedLayout != null) { return m_nestedLayout.ContentType; } - return "text/plain"; + return "text/plain"; } } @@ -137,8 +137,8 @@ namespace SampleLayoutsApp.Layout /// </remarks> virtual public string Header { - get - { + get + { if (m_nestedLayout != null) { return m_nestedLayout.Header; @@ -159,8 +159,8 @@ namespace SampleLayoutsApp.Layout /// </remarks> virtual public string Footer { - get - { + get + { if (m_nestedLayout != null) { return m_nestedLayout.Footer; @@ -185,10 +185,10 @@ namespace SampleLayoutsApp.Layout /// value is <c>true</c>, this layout does not handle the exception. /// </para> /// </remarks> - virtual public bool IgnoresException - { - get - { + virtual public bool IgnoresException + { + get + { if (m_nestedLayout != null) { return m_nestedLayout.IgnoresException; http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelConversionPattern.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelConversionPattern.cs b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelConversionPattern.cs index d4d729d..c5e316a 100644 --- a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelConversionPattern.cs +++ b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelConversionPattern.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelPatternLayout.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelPatternLayout.cs b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelPatternLayout.cs index 2176b91..b37b377 100644 --- a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelPatternLayout.cs +++ b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LevelPatternLayout.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LineWrappingLayout.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LineWrappingLayout.cs b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LineWrappingLayout.cs index de4f3f1..5195ebd 100644 --- a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LineWrappingLayout.cs +++ b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/Layout/LineWrappingLayout.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/LoggingExample.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/LoggingExample.cs b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/LoggingExample.cs index c0df309..2cf66de 100644 --- a/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/LoggingExample.cs +++ b/examples/net/2.0/Layouts/SampleLayoutsApp/cs/src/LoggingExample.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Performance/NotLogging/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Performance/NotLogging/cs/src/AssemblyInfo.cs b/examples/net/2.0/Performance/NotLogging/cs/src/AssemblyInfo.cs index b278ed8..872c53f 100644 --- a/examples/net/2.0/Performance/NotLogging/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Performance/NotLogging/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net performance test - NotLogging")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - NotLogging")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Performance/NotLogging/cs/src/NotLogging.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Performance/NotLogging/cs/src/NotLogging.cs b/examples/net/2.0/Performance/NotLogging/cs/src/NotLogging.cs index 8b51d80..163e5a4 100644 --- a/examples/net/2.0/Performance/NotLogging/cs/src/NotLogging.cs +++ b/examples/net/2.0/Performance/NotLogging/cs/src/NotLogging.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -17,7 +17,7 @@ // #endregion -namespace NotLogging +namespace NotLogging { using System; using System.Collections; @@ -28,7 +28,7 @@ namespace NotLogging using log4net.Repository; using log4net.Repository.Hierarchy; - public class NotLogging + public class NotLogging { #region Init Code @@ -44,9 +44,9 @@ namespace NotLogging static readonly ILog[] LOG_ARRAY = new ILog[] { - SHORT_LOG, - MEDIUM_LOG, - LONG_LOG, + SHORT_LOG, + MEDIUM_LOG, + LONG_LOG, INEXISTENT_SHORT_LOG, INEXISTENT_MEDIUM_LOG, INEXISTENT_LONG_LOG}; @@ -63,13 +63,13 @@ namespace NotLogging new ComplexMessage_MemberGuard_Bare(), new ComplexMessage_LocalGuard_Bare()}; - private static void Usage() + private static void Usage() { System.Console.WriteLine( - "Usage: NotLogging <true|false> <runLength>" + Environment.NewLine + - "\t true indicates shipped code" + Environment.NewLine + - "\t false indicates code in development" + Environment.NewLine + - "\t runLength is an int representing the run length of loops" + Environment.NewLine + + "Usage: NotLogging <true|false> <runLength>" + Environment.NewLine + "\t true indicates shipped code" + Environment.NewLine + "\t false indicates code in development" + Environment.NewLine + "\t runLength is an int representing the run length of loops" + Environment.NewLine "\t We suggest that runLength be at least 1000000 (1 million)."); Environment.Exit(1); } @@ -79,35 +79,35 @@ namespace NotLogging /// Program wide initialization method /// </summary> /// <param name="args"></param> - private static int ProgramInit(String[] args) + private static int ProgramInit(String[] args) { int runLength = 0; - try + try { - runLength = int.Parse(args[1]); + runLength = int.Parse(args[1]); } - catch(Exception e) + catch(Exception e) { System.Console.Error.WriteLine(e); Usage(); - } - + } + ConsoleAppender appender = new ConsoleAppender(); appender.Layout = new SimpleLayout(); ((SimpleLayout)appender.Layout).ActivateOptions(); appender.ActivateOptions(); - - if("false" == args[0]) + + if("false" == args[0]) { // nothing to do - } - else if ("true" == args[0]) + } + else if ("true" == args[0]) { System.Console.WriteLine("Flagging as shipped code."); ((Hierarchy)LogManager.GetRepository()).Threshold = log4net.Core.Level.Warn; - } - else + } + else { Usage(); } @@ -117,22 +117,22 @@ namespace NotLogging ((Hierarchy)LogManager.GetRepository()).Root.AddAppender(appender); return runLength; - } - + } + #endregion /// <summary> /// The main entry point for the application. /// </summary> [STAThread] - static void Main(string[] argv) + static void Main(string[] argv) { - if (System.Diagnostics.Debugger.IsAttached) + if (System.Diagnostics.Debugger.IsAttached) { WARM_UP_CYCLES = 0; argv = new string[] { "false", "2" }; } - if(argv.Length != 2) + if(argv.Length != 2) { Usage(); } @@ -142,11 +142,11 @@ namespace NotLogging System.Console.WriteLine(); System.Console.Write("Warming Up..."); - if (WARM_UP_CYCLES > 0) + if (WARM_UP_CYCLES > 0) { - foreach(ILog logger in LOG_ARRAY) + foreach(ILog logger in LOG_ARRAY) { - foreach(TimedTest timedTest in TIMED_TESTS) + foreach(TimedTest timedTest in TIMED_TESTS) { timedTest.Run(logger, WARM_UP_CYCLES); } @@ -157,7 +157,7 @@ namespace NotLogging // Calculate maximum description length int maxDescLen = 0; - foreach(TimedTest timedTest in TIMED_TESTS) + foreach(TimedTest timedTest in TIMED_TESTS) { maxDescLen = Math.Max(maxDescLen, timedTest.Description.Length); } @@ -167,10 +167,10 @@ namespace NotLogging ArrayList averageData = new ArrayList(); - foreach(TimedTest timedTest in TIMED_TESTS) + foreach(TimedTest timedTest in TIMED_TESTS) { double total = 0; - foreach(ILog logger in LOG_ARRAY) + foreach(ILog logger in LOG_ARRAY) { delta = timedTest.Run(logger, runLength); System.Console.WriteLine(string.Format(formatString, timedTest.Description, delta, ((Logger)logger.Logger).Name)); @@ -185,7 +185,7 @@ namespace NotLogging System.Console.WriteLine("Averages:"); System.Console.WriteLine(); - foreach(object[] pair in averageData) + foreach(object[] pair in averageData) { string avgFormatString = "{0,-"+(maxDescLen+1)+"} {1,9:G} ticks."; System.Console.WriteLine(string.Format(avgFormatString, ((TimedTest)pair[0]).Description, ((double)pair[1]))); @@ -193,7 +193,7 @@ namespace NotLogging } } - abstract class TimedTest + abstract class TimedTest { abstract public double Run(ILog log, long runLength); abstract public string Description {get;} @@ -201,12 +201,12 @@ namespace NotLogging #region Tests calling Debug(string) - class SimpleMessage_Bare : TimedTest + class SimpleMessage_Bare : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { log.Debug("msg"); } @@ -215,39 +215,39 @@ namespace NotLogging return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "log.Debug(\"msg\");"; } } } - class ComplexMessage_MethodGuard_Bare : TimedTest + class ComplexMessage_MethodGuard_Bare : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { - if(log.IsDebugEnabled) + if(log.IsDebugEnabled) { log.Debug("msg" + i + "msg"); } - } + } DateTime after = DateTime.Now; TimeSpan diff = after - before; return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "if(log.IsDebugEnabled) log.Debug(\"msg\" + i + \"msg\");"; } } } - class ComplexMessage_Bare : TimedTest + class ComplexMessage_Bare : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { log.Debug("msg" + i + "msg"); } @@ -256,7 +256,7 @@ namespace NotLogging return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "log.Debug(\"msg\" + i + \"msg\");"; } } @@ -266,12 +266,12 @@ namespace NotLogging #region Tests calling Debug(new object[] { ... }) - class SimpleMessage_Array : TimedTest + class SimpleMessage_Array : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { log.Debug(new object[] { "msg" }); } @@ -280,39 +280,39 @@ namespace NotLogging return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "log.Debug(new object[] { \"msg\" });"; } } } - class ComplexMessage_MethodGuard_Array : TimedTest + class ComplexMessage_MethodGuard_Array : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { - if(log.IsDebugEnabled) + if(log.IsDebugEnabled) { log.Debug(new object[] { "msg" , i , "msg" }); } - } + } DateTime after = DateTime.Now; TimeSpan diff = after - before; return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "if(log.IsDebugEnabled) log.Debug(new object[] { \"msg\" , i , \"msg\" });"; } } } - class ComplexMessage_Array : TimedTest + class ComplexMessage_Array : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { log.Debug(new object[] { "msg" , i , "msg" }); } @@ -321,7 +321,7 @@ namespace NotLogging return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "log.Debug(new object[] { \"msg\" , i , \"msg\" });"; } } @@ -331,54 +331,54 @@ namespace NotLogging #region Tests calling Debug(string) (using class members) - class ComplexMessage_MemberGuard_Bare : TimedTest + class ComplexMessage_MemberGuard_Bare : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { return (new Impl(log)).Run(runLength); } - override public string Description + override public string Description { get { return "if(m_isEnabled) m_log.Debug(\"msg\" + i + \"msg\");"; } } - class Impl + class Impl { private readonly ILog m_log; private readonly bool m_isEnabled; - public Impl(ILog log) + public Impl(ILog log) { m_log = log; m_isEnabled = m_log.IsDebugEnabled; } - public double Run(long runLength) + public double Run(long runLength) { DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { - if(m_isEnabled) + if(m_isEnabled) { m_log.Debug("msg" + i + "msg"); } - } + } DateTime after = DateTime.Now; TimeSpan diff = after - before; return ((double)diff.Ticks)/((double)runLength); } } } - class SimpleMessage_LocalGuard_Bare : TimedTest + class SimpleMessage_LocalGuard_Bare : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { bool isEnabled = log.IsDebugEnabled; DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { if (isEnabled) log.Debug("msg"); } @@ -387,17 +387,17 @@ namespace NotLogging return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "if (isEnabled) log.Debug(\"msg\");"; } } } - class SimpleMessage_MethodGuard_Bare : TimedTest + class SimpleMessage_MethodGuard_Bare : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { if (log.IsDebugEnabled) log.Debug("msg"); } @@ -406,32 +406,32 @@ namespace NotLogging return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "if (log.IsDebugEnabled) log.Debug(\"msg\");"; } } } - class ComplexMessage_LocalGuard_Bare : TimedTest + class ComplexMessage_LocalGuard_Bare : TimedTest { - override public double Run(ILog log, long runLength) + override public double Run(ILog log, long runLength) { bool isEnabled = log.IsDebugEnabled; DateTime before = DateTime.Now; - for(int i = 0; i < runLength; i++) + for(int i = 0; i < runLength; i++) { if(isEnabled) log.Debug("msg" + i + "msg"); - } + } DateTime after = DateTime.Now; TimeSpan diff = after - before; return ((double)diff.Ticks)/((double)runLength); } - override public string Description + override public string Description { get { return "if (isEnabled) log.Debug(\"msg\" + i + \"msg\");"; } } } - #endregion + #endregion } http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Remoting/RemotingClient/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Remoting/RemotingClient/cs/src/AssemblyInfo.cs b/examples/net/2.0/Remoting/RemotingClient/cs/src/AssemblyInfo.cs index 32ade26..762360b 100644 --- a/examples/net/2.0/Remoting/RemotingClient/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Remoting/RemotingClient/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net RemotingClient")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - RemotingClient")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Remoting/RemotingClient/cs/src/RemotingClient.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Remoting/RemotingClient/cs/src/RemotingClient.cs b/examples/net/2.0/Remoting/RemotingClient/cs/src/RemotingClient.cs index c98ed39..5016468 100644 --- a/examples/net/2.0/Remoting/RemotingClient/cs/src/RemotingClient.cs +++ b/examples/net/2.0/Remoting/RemotingClient/cs/src/RemotingClient.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Remoting/RemotingServer/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Remoting/RemotingServer/cs/src/AssemblyInfo.cs b/examples/net/2.0/Remoting/RemotingServer/cs/src/AssemblyInfo.cs index 56c2d00..703fc08 100644 --- a/examples/net/2.0/Remoting/RemotingServer/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Remoting/RemotingServer/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net RemotingServer")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - RemotingServer")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Remoting/RemotingServer/cs/src/RemotingServer.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Remoting/RemotingServer/cs/src/RemotingServer.cs b/examples/net/2.0/Remoting/RemotingServer/cs/src/RemotingServer.cs index c5203f9..78ef338 100644 --- a/examples/net/2.0/Remoting/RemotingServer/cs/src/RemotingServer.cs +++ b/examples/net/2.0/Remoting/RemotingServer/cs/src/RemotingServer.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Repository/SharedModule/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Repository/SharedModule/cs/src/AssemblyInfo.cs b/examples/net/2.0/Repository/SharedModule/cs/src/AssemblyInfo.cs index ee75642..47fd3d2 100644 --- a/examples/net/2.0/Repository/SharedModule/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Repository/SharedModule/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net SharedModule")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - SharedModule")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Repository/SharedModule/cs/src/Math.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Repository/SharedModule/cs/src/Math.cs b/examples/net/2.0/Repository/SharedModule/cs/src/Math.cs index 12586b9..f7c30dc 100644 --- a/examples/net/2.0/Repository/SharedModule/cs/src/Math.cs +++ b/examples/net/2.0/Repository/SharedModule/cs/src/Math.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs b/examples/net/2.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs index cc3415d..f22f11d 100644 --- a/examples/net/2.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net SimpleApp")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - SimpleApp")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Repository/SimpleApp/cs/src/EntryPoint.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Repository/SimpleApp/cs/src/EntryPoint.cs b/examples/net/2.0/Repository/SimpleApp/cs/src/EntryPoint.cs index 8e55eef..4b384ed 100644 --- a/examples/net/2.0/Repository/SimpleApp/cs/src/EntryPoint.cs +++ b/examples/net/2.0/Repository/SimpleApp/cs/src/EntryPoint.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -20,8 +20,8 @@ // Configure logging for this assembly using the 'SimpleApp.exe.log4net' file [assembly: log4net.Config.XmlConfigurator(ConfigFileExtension="log4net", Watch=true)] -// The following alias attribute can be used to capture the logging -// repository for the 'SimpleModule' assembly. Without specifying this +// The following alias attribute can be used to capture the logging +// repository for the 'SimpleModule' assembly. Without specifying this // attribute the logging configuration for the 'SimpleModule' assembly // will be read from the 'SimpleModule.dll.log4net' file. When this // attribute is specified the configuration will be shared with this http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs b/examples/net/2.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs index 1c32a35..21ec7f1 100644 --- a/examples/net/2.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net SimpleModule")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - SimpleModule")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Repository/SimpleModule/cs/src/Math.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Repository/SimpleModule/cs/src/Math.cs b/examples/net/2.0/Repository/SimpleModule/cs/src/Math.cs index 1ac71d1..1dc5f91 100644 --- a/examples/net/2.0/Repository/SimpleModule/cs/src/Math.cs +++ b/examples/net/2.0/Repository/SimpleModule/cs/src/Math.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -17,7 +17,7 @@ // #endregion -// We want this assembly to have a seperate logging repository to the +// We want this assembly to have a seperate logging repository to the // rest of the application. We will configure this repository seperatly. [assembly: log4net.Config.Repository("SimpleModule")] http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs b/examples/net/2.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs index d54589c..7fa9c05 100644 --- a/examples/net/2.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,29 +29,29 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net ConsoleApp")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - ConsoleApp")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs b/examples/net/2.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs index d1c53d1..a58ea2e 100644 --- a/examples/net/2.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs +++ b/examples/net/2.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -70,7 +70,7 @@ namespace ConsoleApp { log.Warn("This should have an NDC message"); - // Set a Mapped Diagnostic Context value + // Set a Mapped Diagnostic Context value log4net.MDC.Set("auth", "auth-none"); log.Warn("This should have an MDC message for the key 'auth'"); http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyInfo.cs b/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyInfo.cs index 3880373..ebefb42 100644 --- a/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyInfo.cs +++ b/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,7 +21,7 @@ using System.Reflection; using System.Runtime.CompilerServices; // -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // @@ -29,23 +29,23 @@ using System.Runtime.CompilerServices; [assembly: AssemblyDescription("log4net WebApp")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("log4net - WebApp")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCulture("")] // -// In order to sign your assembly you must specify a key to use. Refer to the +// In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // -// Use the attributes below to control which key is used for signing. +// Use the attributes below to control which key is used for signing. // -// Notes: +// Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. -// (*) If the KeyFile and the KeyName values are both specified, the +// (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key +// (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be @@ -53,7 +53,7 @@ using System.Runtime.CompilerServices; // directory is dependent on whether you are working with a local or web project. // For local projects, the project output directory is defined as // <Project Directory>\obj\<Configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile +// located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // For web projects, the project output directory is defined as // %HOMEPATH%\VSWebCache\<Machine Name>\<Project Directory>\obj\<Configuration>. http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyVersionInfo.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyVersionInfo.cs b/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyVersionInfo.cs index 2c98bcf..ad80283 100644 --- a/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyVersionInfo.cs +++ b/examples/net/2.0/Tutorials/WebApp/cs/src/AssemblyVersionInfo.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -21,11 +21,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Revision and Build Numbers +// You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: System.Reflection.AssemblyVersion("1.2.0.30714")] http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Tutorials/WebApp/cs/src/Global.asax.cs ---------------------------------------------------------------------- diff --git a/examples/net/2.0/Tutorials/WebApp/cs/src/Global.asax.cs b/examples/net/2.0/Tutorials/WebApp/cs/src/Global.asax.cs index b3d9384..0a93c34 100644 --- a/examples/net/2.0/Tutorials/WebApp/cs/src/Global.asax.cs +++ b/examples/net/2.0/Tutorials/WebApp/cs/src/Global.asax.cs @@ -1,10 +1,10 @@ #region Apache License // -// Licensed to the Apache Software Foundation (ASF) under one or more +// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. +// this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with +// (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 @@ -26,7 +26,7 @@ using System.Web.SessionState; // Load the configuration from the 'WebApp.dll.log4net' file [assembly: log4net.Config.XmlConfigurator(ConfigFileExtension="log4net", Watch=true)] -namespace WebApp +namespace WebApp { /// <summary> /// Summary description for Global. @@ -36,15 +36,15 @@ namespace WebApp public Global() { InitializeComponent(); - } - + } + #region Web Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() - { + { } #endregion }
