https://discord.umbraco.com logo
#hacktoberfest
Title
# hacktoberfest
s

Sebastiaan

10/30/2021, 4:09 PM
Copy code
csharp
using Microsoft.Extensions.DependencyInjection;
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;

namespace InstaComments
{
    public class Composer : IComposer
    {
        public void Compose(IUmbracoBuilder builder)
        {
            builder.Services.Configure<SpreakerOptions>(builder.Config.GetSection("Spreaker"));
        }
    }

    public class SpreakerOptions
    {
        public bool Enabled { get; set; }
        public int Something { get; set; }
    }
}