/// <summary> /// Registers the content management content types with the factory. /// </summary> /// <param name="factory">The factory with which to register the content.</param> /// <returns>The factory with the content registered.</returns> public static ContentFactory RegisterLiquidRenderer(this ContentFactory factory) { factory.RegisterTransientContent <LiquidPayload>(); factory.RegisterTransientContent <LiquidWithMarkdownPayload>(); factory.RegisterTransientContent <LiquidRenderer>(); factory.RegisterTransientContent <LiquidWithMarkdownRenderer>(); return(factory); }
/// <summary> /// Registers the renderers with the factory. /// </summary> /// <param name="factory">The factory with which to register the content.</param> /// <returns>The factory with the content registered.</returns> public static ContentFactory RegisterRenderers(this ContentFactory factory) { factory.RegisterTransientContent <AbTestSetRenderer>(); factory.RegisterTransientContent <CompoundPayloadRenderer>(); factory.RegisterTransientContent <CompoundContentReferenceRenderer>(); factory.RegisterTransientContent <ContentFragmentRenderer>(); factory.RegisterTransientContent <PublicationWorkflowContentRenderer>(); return(factory); }
private void RegisterTransient(ContentFactory factory) { if (string.IsNullOrEmpty(this.ContentType)) { factory.RegisterTransientContent(this.Type); } else { factory.RegisterTransientContent(this.ContentType, this.Type); } }
private static void AddTenantManagementContentTypes(ContentFactory factory) { factory.RegisterTransientContent <ServiceManifest>(); factory.RegisterTransientContent <ServiceManifestBlobStorageConfigurationEntry>(); factory.RegisterTransientContent <ServiceManifestTableStorageConfigurationEntry>(); factory.RegisterTransientContent <ServiceManifestCosmosDbConfigurationEntry>(); factory.RegisterTransientContent <EnrollmentBlobStorageConfigurationItem>(); factory.RegisterTransientContent <EnrollmentTableStorageConfigurationItem>(); factory.RegisterTransientContent <EnrollmentCosmosConfigurationItem>(); factory.RegisterTransientContent <BlobStorageConfigurationItem>(); factory.RegisterTransientContent <TableStorageConfigurationItem>(); factory.RegisterTransientContent <CosmosConfigurationItem>(); }
/// <summary> /// Registers the content management content types with the factory. /// </summary> /// <param name="factory">The factory with which to register the content.</param> /// <returns>The factory with the content registered.</returns> public static ContentFactory RegisterContentManagementContent(this ContentFactory factory) { factory.RegisterTransientContent <Content>(); factory.RegisterTransientContent <ContentState>(); factory.RegisterTransientContent <ContentFragmentPayload>(); factory.RegisterTransientContent <AbTestSetPayload>(); factory.RegisterTransientContent <CompoundPayload>(); factory.RegisterTransientContent <CompoundContentReferencePayload>(); factory.RegisterTransientContent <PublicationWorkflowContentPayload>(); return(factory); }
public static ContentFactory RegisterTestContentTypes(this ContentFactory contentFactory) { contentFactory.RegisterTransientContent <TraceAction>(); contentFactory.RegisterTransientContent <ApplyCatalogItemPatchAction>(); contentFactory.RegisterTransientContent <CreateCatalogItemAction>(); contentFactory.RegisterTransientContent <SendCreateCatalogItemTriggerAction>(); contentFactory.RegisterTransientContent <TriggerIdCondition>(); contentFactory.RegisterTransientContent <BooleanCondition>(); contentFactory.RegisterTransientContent <CatalogItemCompleteCondition>(); contentFactory.RegisterTransientContent <CatalogItemIdCondition>(); contentFactory.RegisterTransientContent <CatalogItemWillBeCompleteCondition>(); contentFactory.RegisterTransientContent <ContextItemsPresentCondition>(); contentFactory.RegisterTransientContent <CatalogItem>(); contentFactory.RegisterTransientContent <CatalogItemPatch>(); contentFactory.RegisterTransientContent <CreateCatalogItemTrigger>(); contentFactory.RegisterTransientContent <DeleteCatalogItemTrigger>(); contentFactory.RegisterTransientContent <DeprecateCatalogItemTrigger>(); contentFactory.RegisterTransientContent <EditCatalogItemTrigger>(); contentFactory.RegisterTransientContent <PublishCatalogItemTrigger>(); contentFactory.RegisterTransientContent <CauseExternalInvocationTrigger>(); return(contentFactory); }