1. Stylelabs.M.Sdk.Factories

Class TypedEntityFactoryBase

Base implementation of ITypedEntityFactory.

Inheritance

object

TypedEntityFactoryBase

Implements

ITypedEntityFactory

Namespace: StylelabsStylelabs.MSdkFactories

Assembly: Stylelabs.M.Sdk.dll

Syntax

public abstract class TypedEntityFactoryBase : ITypedEntityFactory

Constructors

TypedEntityFactoryBase(IMClient)

Initializes a new instance of the TypedEntityFactoryBase class.

Declaration

protected TypedEntityFactoryBase(IMClient client)

Parameters

TypeNameDescription
IMClientclientThe client.

Methods

CreateEntity(EntityConstructionArgs)

Creates a typed entity.

Declaration

public abstract IEntity CreateEntity(EntityConstructionArgs args)

Parameters

TypeNameDescription
EntityConstructionArgsargsThe entity construction arguments.

Returns

TypeDescription
IEntityThe entity.

FromEntity(IEntity)

Maps an IEntity to a ITypedEntity.

Declaration

public T FromEntity<T>(IEntity entity) where T : ITypedEntity

Parameters

TypeNameDescription
IEntityentityThe IEntity.

Returns

TypeDescription
TAn entity of the specified type.

Type Parameters

NameDescription
TThe type of the typed entity.

Implements

ITypedEntityFactory

If you have suggestions for improving this article, let us know!