예제 #1
0
        public static IServices AddPolling <T>(this IServices services, IConfiguration?config = null)
            where T : class, IUpdateHandler
        {
            var pollingConfig = config is null
        ? new PollingConfig()
        : config.GetSection("Polling").Get <PollingConfig>();

            return(services.AddPolling <T>(pollingConfig));
        }