Skip to content

Commit ee86796

Browse files
committed
Update documentation
1 parent 5ed3d2b commit ee86796

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static partial class ServiceCollectionExtensions
139139
`GenerateServiceRegistrations` attribute has the following properties:
140140
| Property | Description |
141141
| --- | --- |
142-
| **FromAssemblyOf** | Set the assembly containing the given type as the source of types to register. If not specified, the assembly containing the method with this attribute will be used. |
142+
| **FromAssemblyOf** | Set the assembly containing the given type as the source of types to register. If not specified, all referenced projects are scanned.|
143143
| **AssignableTo** | Set the type that the registered types must be assignable to. Types will be registered with this type as the service type, unless `AsImplementedInterfaces` or `AsSelf` is set. |
144144
| **Lifetime** | Set the lifetime of the registered services. `ServiceLifetime.Transient` is used if not specified. |
145145
| **AsImplementedInterfaces** | If true, the registered types will be registered as implemented interfaces instead of their actual type. |

ServiceScan.SourceGenerator/GenerateAttributeSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class GenerateServiceRegistrationsAttribute : Attribute
1717
{
1818
/// <summary>
1919
/// Set the assembly containing the given type as the source of types to register.
20-
/// If not specified, the assembly containing the method with this attribute will be used.
20+
/// If not specified, all referenced projects are scanned.
2121
/// </summary>
2222
public Type? FromAssemblyOf { get; set; }
2323

0 commit comments

Comments
 (0)