File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -413,3 +413,24 @@ public class RedisConfiguration : IExtensionConfigProvider
413413```
414414
415415Important: parts of the code were removed to keep the post simple. Check the source code for the complete implementation.
416+
417+ 5 . Register the extensions using the WebJobsStartup attribute
418+
419+ ``` c#
420+ [assembly : WebJobsStartup (typeof (Fbeltrao .AzureFunctionExtensions .Startup ))]
421+
422+ namespace Fbeltrao .AzureFunctionExtensions
423+ {
424+ /// <summary >
425+ /// Extension initializer
426+ /// </summary >
427+ public class Startup : IWebJobsStartup
428+ {
429+ public void Configure (IWebJobsBuilder builder )
430+ {
431+ builder .AddExtension <RedisConfiguration >();
432+ }
433+ }
434+ }
435+
436+ ```
Original file line number Diff line number Diff line change 1- version : ' 1.0.0-beta {build}'
1+ version : ' 1.0.{build}'
22image : Visual Studio 2017
33branches :
44 only :
You can’t perform that action at this time.
0 commit comments