-
-
Notifications
You must be signed in to change notification settings - Fork 838
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
525 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...st.Scenarios.ScannedAssembly/MetadataAttributeScanningScenario/DuplicatedNameAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) Autofac Project. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace Autofac.Test.Scenarios.ScannedAssembly.MetadataAttributeScanningScenario | ||
{ | ||
public class DuplicatedNameAttribute : Attribute, IHaveName | ||
{ | ||
public DuplicatedNameAttribute(string name) | ||
{ | ||
Name = name ?? throw new ArgumentNullException("name"); | ||
} | ||
|
||
public string Name { get; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ssembly/MetadataAttributeScanningScenario/OpenGenericScannedComponentWithMultipleNames.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) Autofac Project. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
namespace Autofac.Test.Scenarios.ScannedAssembly.MetadataAttributeScanningScenario | ||
{ | ||
[Name("My Name")] | ||
[DuplicatedName("My Name 2")] | ||
public class OpenGenericScannedComponentWithMultipleNames<T> | ||
{ | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
....ScannedAssembly/MetadataAttributeScanningScenario/OpenGenericScannedComponentWithName.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) Autofac Project. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
namespace Autofac.Test.Scenarios.ScannedAssembly.MetadataAttributeScanningScenario | ||
{ | ||
[Name("My Name")] | ||
public class OpenGenericScannedComponentWithName<T> | ||
{ | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
test/Autofac.Test.Scenarios.ScannedAssembly/OpenGenericAComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) Autofac Project. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
namespace Autofac.Test.Scenarios.ScannedAssembly | ||
{ | ||
public class OpenGenericAComponent<T> | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.