This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Stylelabs.M.Sdk.WebClient; | |
using Stylelabs.M.Base.Querying; | |
using Stylelabs.M.Framework.Essentials.LoadConfigurations; | |
using Microsoft.Extensions.Caching.Memory; | |
var mClient = new MClient("https://your-contenthub-url", "your-client-id", "your-client-secret"); | |
var memoryCache = new MemoryCache(new MemoryCacheOptions()); | |
var query = Query.CreateQuery(entities => | |
from e in entities |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Stylelabs.M.Sdk.WebClient; | |
using Stylelabs.M.Base.Querying; | |
using Stylelabs.M.Framework.Essentials.LoadConfigurations; | |
using Microsoft.Extensions.Caching.Memory; | |
var mClient = new MClient("https://your-contenthub-url", "your-client-id", "your-client-secret"); | |
var memoryCache = new MemoryCache(new MemoryCacheOptions()); | |
var query = Query.CreateQuery(entities => | |
from e in entities |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Stylelabs.M.Sdk.WebClient; | |
using Stylelabs.M.Base.Querying; | |
using Stylelabs.M.Framework.Essentials.LoadConfigurations; | |
using Microsoft.Extensions.Caching.Memory; | |
const int BatchSize = 1000; | |
int skip = 0; | |
bool hasMore = true; | |
var referenceEntities = new List<IEntity>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEAAS.External.registerComponent(MyByocComponent, { | |
name: 'MyByocComponent', | |
properties: { | |
title: { | |
title: 'Title', | |
type: 'string', | |
enum: ['Mr', 'Mrs', 'Miss', 'Ms', 'Dr'], | |
description: 'Please select an appropriate title', | |
}, | |
tags: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEAAS.External.registerComponent(MyByocComponent, { | |
name: 'MyByocComponent', | |
properties: { | |
title: { | |
title: 'Title', | |
type: 'string', | |
enum: ['Mr', 'Mrs', 'Miss', 'Ms', 'Dr'], | |
description: 'Please select an appropriate title', | |
}, | |
tags: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEAAS.External.registerComponent(MyByocComponent, { | |
name: 'MyByocComponent', | |
properties: { | |
title: { | |
title: 'Title', | |
type: 'string', | |
enum: ['Mr', 'Mrs', 'Miss', 'Ms', 'Dr'], | |
description: 'Please select an appropriate title', | |
}, | |
tags: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEAAS.External.registerComponent(MyByocComponent, { | |
name: 'MyByocComponent', | |
properties: { | |
title: { | |
title: 'Title', | |
type: 'string', | |
enum: ['Mr', 'Mrs', 'Miss', 'Ms', 'Dr'], | |
description: 'Please select an appropriate title', | |
}, | |
tags: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEAAS.External.registerComponent(MyByocComponent, { | |
name: 'MyByocComponent', | |
properties: { | |
title: { | |
title: 'Title', | |
type: 'string', | |
enum: ['Mr', 'Mrs', 'Miss', 'Ms', 'Dr'], | |
description: 'Please select an appropriate title', | |
}, | |
tags: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEAAS.External.registerComponent(MyByocComponent, { | |
name: 'MyByocComponent', | |
properties: { | |
title: { | |
title: 'Title', | |
type: 'string', | |
enum: ['Mr', 'Mrs', 'Miss', 'Ms', 'Dr'], | |
description: 'Please select an appropriate title', | |
}, | |
tags: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEAAS.External.registerComponent(MyByocComponent, { | |
name: 'MyByocComponent', | |
properties: { | |
title: { | |
title: 'Title', | |
type: 'string', | |
description: 'Please fill in an appropriate title for this component', | |
}, | |
columnsCount: { | |
title: 'Columns count', |
NewerOlder