Class MapperFactory
The factory used to convert attachment information into a Mapper instance.
Inheritance
System.Object
MapperFactory
Implements
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: CrashCABN.Metadata
Assembly: CrashCABN.Metadata.dll
Syntax
public sealed class MapperFactory : IMapperFactory
Constructors
View SourceMapperFactory(IAttachmentContainerFactory, IServiceProvider)
Declaration
public MapperFactory(IAttachmentContainerFactory attachmentContainer, IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IAttachmentContainerFactory | attachmentContainer | |
System.IServiceProvider | services |
Methods
View SourceCreate(AttachmentInfo[])
Creates a metdata mapper for the given attachments, using the default processor to load their contents.
Declaration
public Mapper Create(params AttachmentInfo[] attachments)
Parameters
Type | Name | Description |
---|---|---|
AttachmentInfo[] | attachments | The attachments. |
Returns
Type | Description |
---|---|
Mapper | A Mapper instance. |
Create(IAttachmentContainer)
Creates a metdata mapper for the given attachment container.
Declaration
public Mapper Create(IAttachmentContainer attachments)
Parameters
Type | Name | Description |
---|---|---|
IAttachmentContainer | attachments | The attachment container. |
Returns
Type | Description |
---|---|
Mapper | A Mapper instance. |