Skip to content

Commit b12230c

Browse files
authored
Update durable-functions-dotnet-entities.md
the return type of Add function is Void, as we aren't returning anything. Also in the Reset function, we are return Task.CompletedTask, but it's return type is not defined.
1 parent bb45bb8 commit b12230c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-functions/durable/durable-functions-dotnet-entities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ public class Counter : TaskEntity<int>
122122
this.logger = logger;
123123
}
124124

125-
public int Add(int amount)
125+
public void Add(int amount)
126126
{
127127
this.State += amount;
128128
}
129129

130-
public Reset()
130+
public Task Reset()
131131
{
132132
this.State = 0;
133133
return Task.CompletedTask;

0 commit comments

Comments
 (0)