Skip to content

Commit 5118079

Browse files
NuGet dependencies
1 parent 10dca1f commit 5118079

File tree

6 files changed

+57
-3
lines changed

6 files changed

+57
-3
lines changed

examples/bank-account/BankBranch,AzureFunctionApp/BankBranch.AzureFunctionApp.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
55
<Platforms>AnyCPU;x64</Platforms>
6+
<Version>1.0</Version>
7+
<IsPackable>true</IsPackable>
68
</PropertyGroup>
79
<ItemGroup>
810
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="4.0.1" />

examples/bank-account/BankingProduct.AzureFunctionApp/BankingProduct.AzureFunctionApp.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
55
<Platforms>AnyCPU;x64</Platforms>
6+
<Version>1.0</Version>
7+
<IsPackable>true</IsPackable>
68
</PropertyGroup>
79
<ItemGroup>
810
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="4.0.1" />

examples/bank-account/RetailBank.AzureFunctionApp/RetailBank.AzureFunctionApp.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
55
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
66
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
7-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
7+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
88
<Platforms>AnyCPU;x64</Platforms>
99
<Authors>Duncan Jones</Authors>
1010
<Product>Banking Demo</Product>
1111
<Description>Demo app for EventSourcing on Azure Functions</Description>
12+
<Version>1.1</Version>
13+
<IsPackable>true</IsPackable>
1214
</PropertyGroup>
1315
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
1416
<OutputPath>D:\Source\AzureFunctions\Deploy\</OutputPath>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ReadMe
2+
======
3+
4+
A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions.
5+
6+
Introduction to event sourcing
7+
------------------------------
8+
At its very simplest, event sourcing is a way of storing state (for an entity) which works by storing the sequential history of all the events that have occurred to that entity. Changes to the entity are written as new events appended to the end of the event stream for the entity.
9+
10+
When a query or business process needs to use the current state of the entity it gets this by running a projection over the event stream which is a very simple piece of code which, for each event, decides (a) do I care about this type of event and (b) if so what do I do when I receive it.
11+
12+
13+
End goal
14+
--------
15+
The goal is to be able to interact with the event streams for entities without any extra plumbing in the azure function itself - with both access to event streams and to run projections being via bound variables that are instantiated when the azure function is executed.
16+
17+
(For full details see the GitHub project https://github.com/MerrionComputing/EventsSourcing-on-Azure-Functions)

src/EventSourcingOnAzureFunctions.Common/EventSourcingOnAzureFunctions.Common.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<ItemGroup>
2525
<PackageReference Include="Azure.Storage.Blobs" Version="12.8.0" />
2626
<PackageReference Include="Azure.Storage.Queues" Version="12.6.0" />
27-
<PackageReference Include="DotNetEnv" Version="2.1.0" />
27+
<PackageReference Include="DotNetEnv" Version="2.1.1" />
2828
<PackageReference Include="Microsoft.Azure.Cosmos.Table" Version="1.0.8" />
2929
<PackageReference Include="Microsoft.Azure.EventGrid" Version="3.2.0" />
3030
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
@@ -36,7 +36,10 @@
3636
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="5.0.0" />
3737
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
3838
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
39-
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.9.0-preview.2" />
39+
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.8.1">
40+
<PrivateAssets>all</PrivateAssets>
41+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
42+
</PackageReference>
4043
</ItemGroup>
4144

4245
<ItemGroup>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package >
3+
<metadata>
4+
<id>EventSourcingOnAzureFunctions.Common</id>
5+
<version>1.1</version>
6+
<title>Event Sourcing On Azure Functions</title>
7+
<authors>Duncan Jones</authors>
8+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
9+
<license type="expression">MIT</license>
10+
<projectUrl>https://github.com/MerrionComputing/EventsSourcing-on-Azure-Functions</projectUrl>
11+
<description>$description$</description>
12+
<releaseNotes>Added notifications (via EventGrid) and CQRS scaffold</releaseNotes>
13+
<copyright>2017-2021 Duncan Jones</copyright>
14+
<tags>Event sourcing,serverless,azure functions</tags>
15+
<dependencies>
16+
<group targetFramework=".NETCoreApp2.1" />
17+
<group targetFramework=".NETCoreApp2.2" />
18+
<group targetFramework=".NETCoreApp3.0" />
19+
<group targetFramework=".NETCoreApp3.1" />
20+
</dependencies>
21+
</metadata>
22+
<files>
23+
<!-- Add a readme -->
24+
<file src="EventSourcingOnAzureFunctions.Common.ReadMe.txt" target="" />
25+
<!-- Include everything in bin\Release -->
26+
<file src="bin\Release\**" target="lib" />
27+
</files>
28+
</package>

0 commit comments

Comments
 (0)