Class ServiceOptions
Specifies the general service behavior.
Inheritance
System.Object
ServiceOptions
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public sealed class ServiceOptions : Object
Constructors
ServiceOptions()
Declaration
Properties
AutoInject
If set to true, the system tries to resolve required properties, too.
Declaration
public bool AutoInject { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Default
Declaration
public static ServiceOptions Default { get; }
Property Value
DependencyResolvers
User defined dependency resolvers. Leave blank to use the default ones.
Declaration
public IReadOnlyList<IDependencyResolver> DependencyResolvers { get; set; }
Property Value
DisposalMode
Contains the descriptor how to dispose created service instances.
Declaration
public ServiceDisposalMode DisposalMode { get; set; }
Property Value
ProxyEngine
The proxy engine to be used. Leave blank to use the default engine.
Declaration
public IProxyEngine ProxyEngine { get; set; }
Property Value
SupportAspects
If set to true, the system tries to apply proxies defined via AspectAttribute class.
Declaration
public bool SupportAspects { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
<Clone>$()
Declaration
public ServiceOptions <Clone>$()
Returns
Equals(ServiceOptions)
Declaration
public bool Equals(ServiceOptions other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Equality(ServiceOptions, ServiceOptions)
Declaration
public static bool operator ==(ServiceOptions left, ServiceOptions right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(ServiceOptions, ServiceOptions)
Declaration
public static bool operator !=(ServiceOptions left, ServiceOptions right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>