Created
April 15, 2019 00:32
-
-
Save yuka1984/8a6116cb0014151b31bf5da07f5f3ebf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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