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

David Brendel

10/30/2021, 4:22 PM
public class TestComposer : ComponentComposer { public override void Compose(IUmbracoBuilder builder) { base.Compose(builder); builder.Services.Configure(builder.Config.GetSection("Spreaker")); } } public class TestComponent : IComponent { private readonly SpreakerOptions _spreakerOptions; public TestComponent(IOptions spreakerOptions) { _spreakerOptions = spreakerOptions.Value; } public void Initialize() { } public void Terminate() { } } public class SpreakerOptions { public bool Enabled { get; set; } public int Something { get; set; } }