Class AbstractWrapper<TOptions>
An abstract implementation of the IWrapper
keeping references to abstract output parameters valid for each output
target and the corresponding mapper options.
Inheritance
System.Object
AbstractWrapper<TOptions>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Core.Data.Wrapper
Assembly: Mars.Core.dll
Syntax
public abstract class AbstractWrapper<TOptions> : AbstractWrapper, IWrapper, IDisposable
Type Parameters
Name | Description |
---|---|
TOptions | The type of the custom options object, containing the information from the input config. |
Remarks
When a new output target shall be implemented this class have to be inherited
Constructors
| Improve this Doc View SourceAbstractWrapper(IConfigLoader, ISerializerManager, TOptions)
Creates a new instance of ths AbstractWrapper<TOptions>, implementing
the IWrapper contract.
Declaration
protected AbstractWrapper(IConfigLoader config, ISerializerManager serializer, TOptions options)
Parameters
Type | Name | Description |
---|---|---|
IConfigLoader | config | The result adapter root inputConfiguration object. |
ISerializerManager | serializer | The serializer endpoint to access the model without any reflection. |
TOptions | options | The options object describing custom input/output settings. |
Remarks
When a new output target shall be implemented this class have to be inherited
Properties
| Improve this Doc View SourceOptions
Gets the corresponding option object for this mapper.
Declaration
public TOptions Options { get; set; }
Property Value
Type | Description |
---|---|
TOptions |
Remarks
When a new output target shall be implemented this class have to be inherited
Methods
| Improve this Doc View SourceSetup()
An abstract implementation of the IWrapper
keeping references to abstract output parameters valid for each output
target and the corresponding mapper options.
Declaration
public override void Setup()
Overrides
Remarks
When a new output target shall be implemented this class have to be inherited
Implements
System.IDisposable