Пример #1
0
        public static PatternBuilder AddEventLogBuilder(this PatternBuilder builder, Action <EventLogBuilderOptions> builderSetup = null)
        {
            var options = new EventLogBuilderOptions();

            builderSetup?.Invoke(options);

            builder.ServiceCollection.AddSingleton(options);
            builder.ServiceCollection.AddSingleton <IEventLogBuilder, EventLogBuilder>();
            return(builder);
        }
Пример #2
0
 public EventLogBuilder(EventLogBuilderOptions options)
 {
     _options = options;
 }