Topic: Some questions on getting started
Firstly I would like to just say that this product is great. Really really powerful.
Also, it is good I don't need to sign up to post a message, which is annoying.
Anyway, my questions:
-I have set some properties in the constructor of my logging class:
SiAuto.Si.Enabled = true;
SiAuto.Si.Connections = "tcp()";
This class (Si) has a Dispose() method. Where would I call this? Would I need a destructor?
Does this mean that all of the methods in the class will use these properties? Eg:
void Si_Error(object sender, ErrorEventArgs e)
{
SiAuto.Main.LogException(e.Exception.Message, e.Exception);
}
I am not sure as this event's body is pointing to SiAuto.Main...
-With the event I have above, if I want to call it from my business logic, how best would I do it?
In your documentation (which is pretty comprehensive), you have:
public static void Main(string[] args)
{
// Register our event handler for the error event.
SiAuto.Si.Error += new ErrorEventHandler(EventHandler);
}
Does that mean that when there is an exception, this code is fired? Do I no longer need catch blocks in my business logic?
Thanks
