-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
453 additions
and
683 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
...encube.AzureFunctions.FunctionAppCommon/Aliencube.AzureFunctions.FunctionAppCommon.csproj
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Aliencube.AzureFunctions.Extensions.DependencyInjection" Version="2.2.0.1" /> | ||
<PackageReference Include="Aliencube.AzureFunctions.Extensions.OpenApi" Version="1.7.0" /> | ||
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.28" /> | ||
</ItemGroup> | ||
|
||
</Project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
50 changes: 25 additions & 25 deletions
50
...ppCommon/Functions/SampleTimerFunction.cs → ...ppCommon/Functions/SampleTimerFunction.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
using Aliencube.AzureFunctions.Extensions.DependencyInjection.Abstractions; | ||
using Aliencube.AzureFunctions.FunctionAppCommon.Functions.FunctionOptions; | ||
|
||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Aliencube.AzureFunctions.FunctionAppCommon.Functions | ||
{ | ||
public class SampleTimerFunction : FunctionBase<ILogger>, ISampleTimerFunction | ||
{ | ||
public override async Task<TOutput> InvokeAsync<TInput, TOutput>(TInput input, FunctionOptionsBase options = null) | ||
{ | ||
var collector = (options as SampleTimerFunctionOptions).Collector; | ||
|
||
var now = DateTimeOffset.UtcNow; | ||
|
||
this.Log.LogInformation($"C# Timer trigger function executed at: {now}"); | ||
|
||
await collector.AddAsync(now.ToString()).ConfigureAwait(false); | ||
|
||
return (TOutput)(object)true; | ||
} | ||
} | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
using Aliencube.AzureFunctions.Extensions.DependencyInjection.Abstractions; | ||
using Aliencube.AzureFunctions.FunctionAppCommon.Functions.FunctionOptions; | ||
|
||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Aliencube.AzureFunctions.FunctionAppCommon.Functions | ||
{ | ||
public class SampleTimerFunction : FunctionBase<ILogger>, ISampleTimerFunction | ||
{ | ||
public override async Task<TOutput> InvokeAsync<TInput, TOutput>(TInput input, FunctionOptionsBase options = null) | ||
{ | ||
var collector = (options as SampleTimerFunctionOptions).Collector; | ||
|
||
var now = DateTimeOffset.UtcNow; | ||
|
||
this.Log.LogInformation($"C# Timer trigger function executed at: {now}"); | ||
|
||
await collector.AddAsync(now.ToString()).ConfigureAwait(false); | ||
|
||
return (TOutput)(object)true; | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.