Example #1
0
        public static IHubConnectionBuilder WithLogger(this IHubConnectionBuilder hubConnectionBuilder, Action <ILoggerFactory> configureLogging)
        {
            var loggerFactory = hubConnectionBuilder.GetLoggerFactory() ?? new LoggerFactory();

            configureLogging(loggerFactory);
            return(hubConnectionBuilder.WithLoggerFactory(loggerFactory));
        }