Skip to content

Commit ffc8dd9

Browse files
use .AddDiagnoser instead of the obsolete .With in the EtwProfiler doc sample (#1633)
1 parent 40f6e5b commit ffc8dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/articles/features/etwprofiler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Program
5454
.FromAssembly(typeof(Program).Assembly)
5555
.Run(args,
5656
DefaultConfig.Instance
57-
.With(new EtwProfiler())); // HERE
57+
.AddDiagnoser(new EtwProfiler())); // HERE
5858
}
5959
```
6060

0 commit comments

Comments
 (0)