Class DataTypeConfigurationConnectorExtensions
Extension methods adding backwards-compatability between IDataTypeConfigurationConnector and IDataTypeConfigurationConnector2.
Inheritance
Namespace: Umbraco.Cms.Core.Deploy
Assembly: Umbraco.Core.dll
Syntax
public static class DataTypeConfigurationConnectorExtensions
Remarks
These extension methods will be removed in Umbraco 13.
Methods
View SourceFromArtifact(IDataTypeConfigurationConnector, IDataType, String, IContextCache)
Gets the data type configuration corresponding to an artifact configuration value.
Declaration
public static object FromArtifact(this IDataTypeConfigurationConnector connector, IDataType dataType, string configuration, IContextCache contextCache)
Parameters
Type | Name | Description |
---|---|---|
IDataTypeConfigurationConnector | connector | The connector. |
IDataType | dataType | The data type. |
System.String | configuration | The artifact configuration value. |
IContextCache | contextCache | The context cache. |
Returns
Type | Description |
---|---|
System.Object | The data type configuration. |
Remarks
This extension method tries to make use of the IContextCache on types also implementing IDataTypeConfigurationConnector2.
ToArtifact(IDataTypeConfigurationConnector, IDataType, ICollection<ArtifactDependency>, IContextCache)
Gets the artifact configuration value corresponding to a data type configuration and gather dependencies.
Declaration
public static string ToArtifact(this IDataTypeConfigurationConnector connector, IDataType dataType, ICollection<ArtifactDependency> dependencies, IContextCache contextCache)
Parameters
Type | Name | Description |
---|---|---|
IDataTypeConfigurationConnector | connector | The connector. |
IDataType | dataType | The data type. |
ICollection<ArtifactDependency> | dependencies | The dependencies. |
IContextCache | contextCache | The context cache. |
Returns
Type | Description |
---|---|
System.String | The artifact configuration value. |
Remarks
This extension method tries to make use of the IContextCache on types also implementing IDataTypeConfigurationConnector2.