Skip to content

Commit 423b176

Browse files
Merge pull request #204 from TimeWarpEngineering/Cramer/2019-12-11/UpdateTutorial
Update Tutorial and new image based on latest template
2 parents 33292d5 + 062b9dc commit 423b176

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

3.59 KB
Loading

Documentation/Tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace Sample.Client.Features.Counter
8989
public partial class CounterState : State<CounterState>
9090
{
9191
public int Count { get; private set; }
92-
protected override void Initialize() => Count = 3;
92+
public override void Initialize() => Count = 3;
9393
}
9494
}
9595
```
@@ -122,7 +122,7 @@ namespace Sample.Client
122122
typeof(Startup).GetTypeInfo().Assembly,
123123
}
124124
);
125-
services.AddScoped<CounterState>();
125+
services.AddTransient<CounterState>();
126126
}
127127

128128
public void Configure(IComponentsApplicationBuilder app)

0 commit comments

Comments
 (0)