Skip to content

Commit

Permalink
Update WebAPi readme
Browse files Browse the repository at this point in the history
Add a full example of creating custom RaygunWebApiClients
  • Loading branch information
jamiepenney committed May 6, 2015
1 parent 28295a3 commit b7f39b8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Mindscape.Raygun4Net.WebApi/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ Sometimes when setting up Raygun to send exceptions automatically, you may need
To do this, use the static RaygunWebApiClient method overload that takes a function. Within this function, return a new (or previously created) RaygunWebApiClient instance.
In this function you can setup any additional options on the RaygunWebApiClient instance that you need - more information about each feature is described below.

RaygunWebApiClient.Attach(config, () => {
var client = new RaygunWebApiClient();
client.ApplicationVersion = "5.9.0.1";
client.UserInfo = new RaygunIdentifierMessage("user@example.com");
client.SendingMessage += (sender, args) =>
{
if (args.Message.Details.MachineName == "BadServer")
{
args.Cancel = true;
}
};
return client;
});

Additional configuration options and features
=============================================

Expand Down

0 comments on commit b7f39b8

Please sign in to comment.