Skip to content

Commit 245cdbc

Browse files
committed
Set user agent.
1 parent f2e33e6 commit 245cdbc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/csharp/DocRaptor/Client/ApiClient.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public ApiClient()
2626
{
2727
Configuration = Configuration.Default;
2828
RestClient = new RestClient("https://docraptor.com/");
29+
RestClient.UserAgent = "csharp-swagger-" + Configuration.Version;
2930
}
3031

3132
/// <summary>
@@ -41,6 +42,7 @@ public ApiClient(Configuration config = null)
4142
Configuration = config;
4243

4344
RestClient = new RestClient("https://docraptor.com/");
45+
RestClient.UserAgent = "csharp-swagger-" + Configuration.Version;
4446
}
4547

4648
/// <summary>
@@ -55,6 +57,7 @@ public ApiClient(String basePath = "https://docraptor.com/")
5557

5658
RestClient = new RestClient(basePath);
5759
Configuration = Configuration.Default;
60+
RestClient.UserAgent = "csharp-swagger-" + Configuration.Version;
5861
}
5962

6063
/// <summary>

0 commit comments

Comments
 (0)