Skip to content

Commit

Permalink
Set user agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-o-matic committed Mar 11, 2016
1 parent f2e33e6 commit 245cdbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/csharp/DocRaptor/Client/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public ApiClient()
{
Configuration = Configuration.Default;
RestClient = new RestClient("https://docraptor.com/");
RestClient.UserAgent = "csharp-swagger-" + Configuration.Version;
}

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

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

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

RestClient = new RestClient(basePath);
Configuration = Configuration.Default;
RestClient.UserAgent = "csharp-swagger-" + Configuration.Version;
}

/// <summary>
Expand Down

0 comments on commit 245cdbc

Please sign in to comment.