From 1459afb3039516c0af001a7a02bad8e87327f159 Mon Sep 17 00:00:00 2001 From: Adrian Clark Date: Wed, 28 Sep 2022 18:27:00 +1000 Subject: [PATCH] Update Example Code --- examples/Console/iRacingConsole/Program.cs | 2 ++ examples/Console/iRacingConsole/iRacingConsole.csproj | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/Console/iRacingConsole/Program.cs b/examples/Console/iRacingConsole/Program.cs index 082a526..1ef970c 100644 --- a/examples/Console/iRacingConsole/Program.cs +++ b/examples/Console/iRacingConsole/Program.cs @@ -20,6 +20,8 @@ var services = new ServiceCollection(); services.AddIRacingDataApi(options => { + options.UserAgentProductName = "Aydsko.iRacing Example"; + options.UserAgentProductVersion = typeof(Program).Assembly.GetName().Version; options.Username = username; options.Password = password; }); diff --git a/examples/Console/iRacingConsole/iRacingConsole.csproj b/examples/Console/iRacingConsole/iRacingConsole.csproj index 5ba20ea..b72ed12 100644 --- a/examples/Console/iRacingConsole/iRacingConsole.csproj +++ b/examples/Console/iRacingConsole/iRacingConsole.csproj @@ -8,7 +8,7 @@ - +