Show / Hide Table of Contents

Class MapperFactory

The factory used to convert attachment information into a Mapper instance.

Inheritance
System.Object
MapperFactory
Implements
IMapperFactory
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 Source

MapperFactory(IAttachmentContainerFactory, IServiceProvider)

Declaration
public MapperFactory(IAttachmentContainerFactory attachmentContainer, IServiceProvider services)
Parameters
Type Name Description
IAttachmentContainerFactory attachmentContainer
System.IServiceProvider services

Methods

View Source

Create(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.

View Source

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.

Implements

IMapperFactory
  • View Source
In This Article
Back to top Generated by DocFX