Skip to content

Commit 39cced4

Browse files
committed
fix build issue
1 parent 9bc2ff9 commit 39cced4

File tree

4 files changed

+46
-6
lines changed

4 files changed

+46
-6
lines changed

src/aggregator-function/aggregator-function.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
<None Update="default.rule">
3434
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
3535
</None>
36-
<Content Include="test\function.json">
36+
<None Include="test\function.json">
3737
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
38-
</Content>
39-
<Content Include="test\run.csx">
38+
</None>
39+
<None Include="test\run.csx">
4040
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
41-
</Content>
42-
<Content Include="test\test.rule">
41+
</None>
42+
<None Include="test\test.rule">
4343
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
44-
</Content>
44+
</None>
4545
</ItemGroup>
4646
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"bindings": [
3+
{
4+
"type": "httpTrigger",
5+
"direction": "in",
6+
"webHookType": "genericJson",
7+
"name": "req"
8+
},
9+
{
10+
"type": "http",
11+
"direction": "out",
12+
"name": "res"
13+
}
14+
],
15+
"disabled": false
16+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#r "../bin/aggregator-function.dll"
2+
#r "../bin/aggregator-core.dll"
3+
4+
using aggregator;
5+
6+
public static async Task<object> Run(HttpRequestMessage req, TraceWriter log, ExecutionContext context)
7+
{
8+
var handler = new AzureFunctionHandler(log, context);
9+
return await handler.Run(req);
10+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
if (self.Parent != null)
3+
{
4+
var parent = store.GetWorkItem(self.Parent);
5+
var children = store.GetWorkItems(parent.Children);
6+
if (children.All(c => c.State == "Closed"))
7+
{
8+
parent.State = "Closed";
9+
}
10+
parent.Description = parent.Description + " aggregator was here.";
11+
}
12+
return $"Hello { self.WorkItemType } #{ self.Id } - { self.Title }!";
13+
*/
14+
return self.PreviousRevision.PreviousRevision.Description;

0 commit comments

Comments
 (0)