| | | 1 | | using System; |
| | | 2 | | using Microsoft.Azure.Functions.Extensions.DependencyInjection; |
| | | 3 | | |
| | | 4 | | // To register the Configure method we need to specify the type name used during startup |
| | | 5 | | [assembly: FunctionsStartup(typeof(JekyllBlogCommentsAzure.Startup))] |
| | | 6 | | |
| | | 7 | | namespace JekyllBlogCommentsAzure |
| | | 8 | | { |
| | | 9 | | public class Startup : FunctionsStartup |
| | | 10 | | { |
| | | 11 | | public override void Configure(IFunctionsHostBuilder builder) |
| | 2 | 12 | | { |
| | 2 | 13 | | if (builder is null) |
| | 1 | 14 | | { |
| | 1 | 15 | | throw new ArgumentNullException(nameof(builder)); |
| | | 16 | | } |
| | | 17 | | |
| | 1 | 18 | | builder.Services.AddPostCommentService(); |
| | 1 | 19 | | } |
| | | 20 | | } |
| | | 21 | | } |