public static IApplicationBuilder UsePlayground( this IApplicationBuilder applicationBuilder, PlaygroundOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(applicationBuilder .UsePlaygroundSettingsMiddleware(options) .UsePlaygroundFileServer(options.Path)); }