CSC.REP.ExceptionManager 0.2.0

Install-Package CSC.REP.ExceptionManager -Version 0.2.0
dotnet add package CSC.REP.ExceptionManager --version 0.2.0
<PackageReference Include="CSC.REP.ExceptionManager" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSC.REP.ExceptionManager --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSC.REP.ExceptionManager, 0.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CSC.REP.ExceptionManager as a Cake Addin
#addin nuget:?package=CSC.REP.ExceptionManager&version=0.2.0

// Install CSC.REP.ExceptionManager as a Cake Tool
#tool nuget:?package=CSC.REP.ExceptionManager&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage:

In the consumer, have some logic like:

try
{
    throw new System.Exception("Example exception!");
}
catch (System.Exception ex)
{
    Manager exceptionManager = new Manager();
    string result = await exceptionManager.LogAsync(ex.Message, AsyncCallback<bool>);
}

then make sure you have the callback function definied:

public static async Task<bool> AsyncCallback<T>()
{
    return await Task.FromResult(false);
}

and lastly, update the local.settings.json file: (with something like...)

"CongifurationSettings_Retry": 3,
"CongifurationSettings_Failover_or_Broadcast": "Broadcast",

"CongifurationSettings_CosmosDB_Origin": "NorthAmerica",
"CongifurationSettings_CosmosDB_Endpoint_Url": "https://sandeepcosmosdb.documents.azure.com:443/",
"CongifurationSettings_CosmosDB_Auth_Key": "d0iAv73TxcBx8kecIBADeuX7WTcUhbIBgSDXwmjKtAZ4TCu6VnkCLpcznIBcfv61oxzr5rbSV5OogKLV70Jxfg==",
"CongifurationSettings_CosmosDB_Database": "mycosmosdb",
"CongifurationSettings_CosmosDB_Collection": "mydatacollection",

"CongifurationSettings_ServiceBus_Origin": "NorthAmerica",
"CongifurationSettings_ServiceBus_Endpoint_Url": "Endpoint=sb://prakumar.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=TqrnQXTwFqMSWuN8Qx5vUoE2gQKkYlRatQthIBKozWw=",
"CongifurationSettings_ServiceBus_Destination": "Topic",
"CongifurationSettings_ServiceBus_Topic": "productpubexception",
"CongifurationSettings_ServiceBus_Queue": "",
"CongifurationSettings_ServiceBus_Deadletter": "productexception",

"CongifurationSettings_EventGrid_Origin": "NorthAmerica",
"CongifurationSettings_EventGrid_Endpoint_Url": "https://myeventgrid.westus-1.eventgrid.azure.net/api/events",
"CongifurationSettings_EventGrid_Key": "aeg-sas-key",
"CongifurationSettings_EventGrid_Value": "oFJu3kiqUfh8j+b+CqaW41KwhSFBj/JqJ47//LKKBD8="

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 691 6/11/2018
0.1.0 578 6/11/2018

Initial release supports Retry logic, failover and broadcast notification types.