Skip to content

Instantly share code, notes, and snippets.

@yuka1984
Created April 15, 2019 00:32
Show Gist options
  • Save yuka1984/8a6116cb0014151b31bf5da07f5f3ebf to your computer and use it in GitHub Desktop.
Save yuka1984/8a6116cb0014151b31bf5da07f5f3ebf to your computer and use it in GitHub Desktop.
using System.Reflection;
using AzureFunctions.Extensions.Swashbuckle;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Hosting;
using SampleFunction;
[assembly: WebJobsStartup(typeof(SwashBuckleStartup))]
namespace SampleFunction
{
internal class SwashBuckleStartup : IWebJobsStartup
{
public void Configure(IWebJobsBuilder builder)
{
//Register the extension
builder.AddSwashBuckle(Assembly.GetExecutingAssembly());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment