X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-sharp%2FClientException.cs;h=fadcce91f2a18241b7718eb6cc638fd09304ba29;hb=81c60ecd26cd74fa7576b0331fe3edc3214e1b02;hp=11c4e63b9c849ea778d47866446e0b78f3a13579;hpb=0d787cfca3b6e2c0755a54ca732a85e15756aa57;p=catta diff --git a/avahi-sharp/ClientException.cs b/avahi-sharp/ClientException.cs index 11c4e63..fadcce9 100644 --- a/avahi-sharp/ClientException.cs +++ b/avahi-sharp/ClientException.cs @@ -79,7 +79,22 @@ namespace Avahi NotPermitted = -50 } - public delegate void ErrorCodeHandler (object o, ErrorCode code); + public delegate void ErrorCodeHandler (object o, ErrorCodeArgs args); + + public class ErrorCodeArgs : EventArgs + { + private ErrorCode code; + + public ErrorCode ErrorCode + { + get { return code; } + } + + public ErrorCodeArgs (ErrorCode code) + { + this.code = code; + } + } public class ClientException : ApplicationException {