Interface IFactoryOptionsInconsistent<T>
Interface representing a not configured factory.
Namespace:Extend
Assembly:Extend.dll
Syntax
public interface IFactoryOptionsInconsistent<T>
where T : class
Type Parameters
Name | Description |
---|---|
T | The type of the object to create. |
Remarks
Some selection rules must be defined before the factory is valid.
Methods
| Improve this Doc View SourceFor(Func<IIncludeExcludeOptions<T>, IIncludeExcludeOptions<T>>)
Factory will be used to create values for members matching the specified options.
Declaration
IFactoryOptionsConstistent<T> For(Func<IIncludeExcludeOptions<T>, IIncludeExcludeOptions<T>> configurationFunc)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult><IIncludeExcludeOptions<T><T>, IIncludeExcludeOptions<T><T>> | configurationFunc | Function used to configure the factory. |
Returns
Type | Description |
---|---|
IFactoryOptionsConstistent<T><T> | Returns the modified create instance options. |
For(Func<IMemberInformation, Boolean>)
Factory will be used to create values for members matching the given predicate.
Declaration
IFactoryOptionsConstistent<T> For(Func<IMemberInformation, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult><IMemberInformation, System.Boolean> | predicate | The predicate used to find the members which should get created by the factory. |
Returns
Type | Description |
---|---|
IFactoryOptionsConstistent<T><T> | Returns the modified create instance options. |
NotFor(Func<IIncludeExcludeOptions<T>, IIncludeExcludeOptions<T>>)
Factory will NOT be used to create values for members matching the specified options.
Declaration
IFactoryOptionsConstistent<T> NotFor(Func<IIncludeExcludeOptions<T>, IIncludeExcludeOptions<T>> configurationFunc)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult><IIncludeExcludeOptions<T><T>, IIncludeExcludeOptions<T><T>> | configurationFunc | Function used to configure the factory. |
Returns
Type | Description |
---|---|
IFactoryOptionsConstistent<T><T> | Returns the modified create instance options. |
NotFor(Func<IMemberInformation, Boolean>)
Factory will NOT be used to create values for members matching the given predicate.
Declaration
IFactoryOptionsConstistent<T> NotFor(Func<IMemberInformation, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult><IMemberInformation, System.Boolean> | predicate | The predicate used to find the members which should NOT get created by the factory. |
Returns
Type | Description |
---|---|
IFactoryOptionsConstistent<T><T> | Returns the modified create instance options. |