public static AuthenticationBuilder AddAuthentication( this IWebJobsBuilder builder, Action <AuthenticationOptions> configure) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (configure == null) { throw new ArgumentNullException(nameof(configure)); } var services = builder.Services; services.Configure(configure); return(builder.AddAuthentication()); }