How can I use ExceptionLess on a Visual Studio Class Library project without create a settings file?
In other words, the Class Library project creates a DLL with some methods inside it, but I want to report exceptions and notifications during call of these methods of the DLL with ExceptionLess.
Something like:
using System;
using System.Threading.Tasks;
using Exceptionless.Configuration;
...
...
namespace LibraryName
{
public class Activities
{
public static string MethodOne(string var1, string var2)
{
...
try
{
...code...
}
catch(Exception ex)
{
ex.ToExceptionless().Submit();
}
}
public static int MethodTwo(int var1, int var2)
{
...
try
{
...code...
}
catch(Exception ex)
{
ex.ToExceptionless().Submit();
}
}
}
}
So, I should be able to "port" the LibraryName.dll and ExceptionLess DLLs.