You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -157,16 +152,16 @@ public static partial class ModelBuilderExtensions
157
152
`GenerateServiceRegistrations` attribute has the following properties:
158
153
| Property | Description |
159
154
| --- | --- |
160
-
|**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. |
161
-
|**AssemblyNameFilter**|Set this value to filter scanned assemblies by assembly name. It allows to apply an attribute to multiple assemblies. For example, this allows to scan all assemblies from your solution. You can use '\*' wildcards. You can also use ',' to separate multiple filters. *Be careful to include limited amount of assemblies, as it can affect build and editor performance.*|
162
-
|**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. |
163
-
|**Lifetime**|Set the lifetime of the registered services. `ServiceLifetime.Transient` is used if not specified. |
164
-
|**AsImplementedInterfaces**|If true, the registered types will be registered as implemented interfaces instead of their actual type. |
165
-
|**AsSelf**| If true, types will be registered with their actual type. It can be combined with `AsImplementedInterfaces`. In that case, implemented interfaces will be "forwarded" to an actual implementation type. |
166
-
|**TypeNameFilter**|Set this value to filter the types to register by their full name. You can use '*' wildcards. You can also use ',' to separate multiple filters. |
167
-
|**AttributeFilter**|Filter types by the specified attribute type present. |
168
-
|**ExcludeByTypeName**|Set this value to exclude types from being registered by their full name. You can use '*' wildcards. You can also use ',' to separate multiple filters. |
169
-
|**ExcludeByAttribute**|Exclude matching types by the specified attribute type present. |
170
-
|**ExcludeAssignableTo**|Set the type that the registered types must not be assignable to. |
171
-
|**KeySelector**|Set this property to add types as keyed services. This property should point to one of the following: <br>- Name of the static method in the current type with a string return type. The method should be either generic or have a single parameter of type `Type`. <br>- Const field or static property in the implementation type. |
172
-
|**CustomHandler**|Set this property to a static generic method name in the current class. This method will be invoked for each type found by the filter instead of the regular registration logic. This property is incompatible with `Lifetime`, `AsImplementedInterfaces`, `AsSelf`, and `KeySelector` properties. |
155
+
|**FromAssemblyOf**|Sets 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. |
156
+
|**AssemblyNameFilter**|Sets this value to filter scanned assemblies by assembly name. It allows applying an attribute to multiple assemblies. For example, this allows scanning all assemblies from your solution. This option is incompatible with `FromAssemblyOf`. You can use '*' wildcards. You can also use ',' to separate multiple filters. *Be careful to include a limited number of assemblies, as it can affect build and editor performance.*|
157
+
|**AssignableTo**|Sets 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. |
158
+
|**ExcludeAssignableTo**|Sets the type that the registered types must *not* be assignable to. |
159
+
|**Lifetime**|Sets the lifetime of the registered services. `ServiceLifetime.Transient` is used if not specified. |
160
+
|**AsImplementedInterfaces**| If set to true, types will be registered as their implemented interfaces instead of their actual type. |
161
+
|**AsSelf**|If set to true, types will be registered with their actual type. It can be combined with `AsImplementedInterfaces`. In this case, implemented interfaces will be "forwarded" to the "self" implementation. |
162
+
|**TypeNameFilter**|Sets this value to filter the types to register by their full name. You can use '*' wildcards. You can also use ',' to separate multiple filters. |
163
+
|**AttributeFilter**|Filters types by the specified attribute type being present. |
164
+
|**ExcludeByTypeName**|Sets this value to exclude types from being registered by their full name. You can use '*' wildcards. You can also use ',' to separate multiple filters. |
165
+
|**ExcludeByAttribute**|Excludes matching types by the specified attribute type being present. |
166
+
|**KeySelector**|Sets this property to add types as keyed services. This property should point to one of the following: <br>- The name of a static method in the current type with a string return type. The method should be either generic or have a single parameter of type `Type`. <br>- A constant field or static property in the implementation type. |
167
+
|**CustomHandler**|Sets this property to invoke a custom method for each type found instead of regular registration logic. This property should point to one of the following: <br>- Name of a generic method in the current type. <br>- Static method name in found types. <br>This property is incompatible with `Lifetime`, `AsImplementedInterfaces`, `AsSelf`, and `KeySelector` properties. |
0 commit comments