1
#region Copyright & License
3
// Copyright 2001-2005 The Apache Software Foundation
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
9
// http://www.apache.org/licenses/LICENSE-2.0
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.
19
// .NET Compact Framework 1.0 has no support for reading assembly attributes
24
namespace log4net.Config
27
/// Assembly level attribute that specifies the logging domain for the assembly.
31
/// <b>DomainAttribute is obsolete. Use RepositoryAttribute instead of DomainAttribute.</b>
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.
43
/// This attribute can only be specified on the assembly and may only be used
44
/// once per assembly.
47
/// <author>Nicko Cadell</author>
48
/// <author>Gert Driesen</author>
49
[AttributeUsage(AttributeTargets.Assembly)]
51
[Obsolete("Use RepositoryAttribute instead of DomainAttribute")]
52
public sealed class DomainAttribute : RepositoryAttribute
54
#region Public Instance Constructors
57
/// Initializes a new instance of the <see cref="DomainAttribute" /> class.
61
/// Obsolete. Use RepositoryAttribute instead of DomainAttribute.
64
public DomainAttribute() : base()
69
/// Initialize a new instance of the <see cref="DomainAttribute" /> class
70
/// with the name of the domain.
72
/// <param name="name">The name of the domain.</param>
75
/// Obsolete. Use RepositoryAttribute instead of DomainAttribute.
78
public DomainAttribute(string name) : base(name)
82
#endregion Public Instance Constructors
b'\\ No newline at end of file'