Skip to content

Commit a52d5fa

Browse files
committed
add extension method to be able to work in Azure Webjobs projects
1 parent 14625d6 commit a52d5fa

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

AzureFunctions.Extensions.GoogleBigQuery/AzureFunctions.Extensions.GoogleBigQuery.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
<Version>0.0.9.5</Version>
6+
<Version>0.0.9.6</Version>
77
<Authors>Damiao Castro</Authors>
88
<Company>fowet.com</Company>
99
<Description>Extension for Google BigQuery to work with Azure Functions and Azure Webjobs.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using Microsoft.Azure.WebJobs;
2+
using System;
3+
4+
namespace AzureFunctions.Extensions.GoogleBigQuery {
5+
public static class GooglePubJobHostConfigurationExtensions {
6+
7+
/// <summary>
8+
/// Enables use of the Google BigQuery extensions for webjobs
9+
/// </summary>
10+
/// <param name="config">The <see cref="JobHostConfiguration"/> to configure.</param>
11+
public static void UseGoogleBigQuery(this JobHostConfiguration config) {
12+
13+
if (config == null) {
14+
throw new ArgumentNullException(nameof(config));
15+
}
16+
17+
// Register our extension configuration provider
18+
config.RegisterExtensionConfigProvider(new GoogleBigQueryExtensionConfig());
19+
20+
}
21+
22+
}
23+
}

0 commit comments

Comments
 (0)