~ifolder-dev/simias/trunk-packaging

« back to all changes in this revision

Viewing changes to src/core/Simias.log4net/src/Config/.svn/text-base/DomainAttribute.cs.svn-base

  • Committer: Jorge O. Castro
  • Date: 2007-12-03 06:56:46 UTC
  • Revision ID: jorge@ubuntu.com-20071203065646-mupcnjcwgm5mnhyt
* Remove a bunch of .svn directories we no longer need.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#region Copyright & License
2
 
//
3
 
// Copyright 2001-2005 The Apache Software Foundation
4
 
//
5
 
// Licensed under the Apache License, Version 2.0 (the "License");
6
 
// you may not use this file except in compliance with the License.
7
 
// You may obtain a copy of the License at
8
 
//
9
 
// http://www.apache.org/licenses/LICENSE-2.0
10
 
//
11
 
// Unless required by applicable law or agreed to in writing, software
12
 
// distributed under the License is distributed on an "AS IS" BASIS,
13
 
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 
// See the License for the specific language governing permissions and
15
 
// limitations under the License.
16
 
//
17
 
#endregion
18
 
 
19
 
// .NET Compact Framework 1.0 has no support for reading assembly attributes
20
 
#if !NETCF
21
 
 
22
 
using System;
23
 
 
24
 
namespace log4net.Config
25
 
{
26
 
        /// <summary>
27
 
        /// Assembly level attribute that specifies the logging domain for the assembly.
28
 
        /// </summary>
29
 
        /// <remarks>
30
 
        /// <para>
31
 
        /// <b>DomainAttribute is obsolete. Use RepositoryAttribute instead of DomainAttribute.</b>
32
 
        /// </para>
33
 
        /// <para>
34
 
        /// Assemblies are mapped to logging domains. Each domain has its own
35
 
        /// logging repository. This attribute specified on the assembly controls
36
 
        /// the configuration of the domain. The <see cref="RepositoryAttribute.Name"/> property specifies the name
37
 
        /// of the domain that this assembly is a part of. The <see cref="RepositoryAttribute.RepositoryType"/>
38
 
        /// specifies the type of the repository objects to create for the domain. If 
39
 
        /// this attribute is not specified and a <see cref="RepositoryAttribute.Name"/> is not specified
40
 
        /// then the assembly will be part of the default shared logging domain.
41
 
        /// </para>
42
 
        /// <para>
43
 
        /// This attribute can only be specified on the assembly and may only be used
44
 
        /// once per assembly.
45
 
        /// </para>
46
 
        /// </remarks>
47
 
        /// <author>Nicko Cadell</author>
48
 
        /// <author>Gert Driesen</author>
49
 
        [AttributeUsage(AttributeTargets.Assembly)]
50
 
        [Serializable]
51
 
        [Obsolete("Use RepositoryAttribute instead of DomainAttribute")]
52
 
        public sealed class DomainAttribute : RepositoryAttribute
53
 
        {
54
 
                #region Public Instance Constructors
55
 
 
56
 
                /// <summary>
57
 
                /// Initializes a new instance of the <see cref="DomainAttribute" /> class.
58
 
                /// </summary>
59
 
                /// <remarks>
60
 
                /// <para>
61
 
                /// Obsolete. Use RepositoryAttribute instead of DomainAttribute.
62
 
                /// </para>
63
 
                /// </remarks>
64
 
                public DomainAttribute() : base()
65
 
                {
66
 
                }
67
 
 
68
 
                /// <summary>
69
 
                /// Initialize a new instance of the <see cref="DomainAttribute" /> class 
70
 
                /// with the name of the domain.
71
 
                /// </summary>
72
 
                /// <param name="name">The name of the domain.</param>
73
 
                /// <remarks>
74
 
                /// <para>
75
 
                /// Obsolete. Use RepositoryAttribute instead of DomainAttribute.
76
 
                /// </para>
77
 
                /// </remarks>
78
 
                public DomainAttribute(string name) : base(name)
79
 
                {
80
 
                }
81
 
 
82
 
                #endregion Public Instance Constructors
83
 
        }
84
 
}
85
 
 
86
 
#endif // !NETCF
 
 
b'\\ No newline at end of file'