Skip to content

Commit c2bbd0e

Browse files
committed
Fix appveyor version
Add WebJobsStartup step to readme
1 parent f89349e commit c2bbd0e

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,24 @@ public class RedisConfiguration : IExtensionConfigProvider
413413
```
414414

415415
Important: 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+
```

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '1.0.0-beta{build}'
1+
version: '1.0.{build}'
22
image: Visual Studio 2017
33
branches:
44
only:

0 commit comments

Comments
 (0)