Esempio n. 1
0
        public SlackPayloadBuilder WithSection(Action <SectionBlockBuilder> sbb)
        {
            var sectionBlockBuilder = new SectionBlockBuilder();

            sbb(sectionBlockBuilder);
            _blocks.Add(sectionBlockBuilder.Build());
            return(this);
        }
Esempio n. 2
0
        public BlocksBuilder AddSection(Action <SectionBlockBuilder> sectionBuilderActions)
        {
            var contextBuilder = new SectionBlockBuilder();

            sectionBuilderActions(contextBuilder);
            _blocks.Add(contextBuilder.Build());
            return(this);
        }