diff options
author | James Willcox <snopr@snorp.net> | 2005-11-17 17:55:09 +0000 |
---|---|---|
committer | James Willcox <snopr@snorp.net> | 2005-11-17 17:55:09 +0000 |
commit | 84a9392791c574c56ca148157b8b951851208398 (patch) | |
tree | 3faf9ccf41d970b0c686907f9a3a6c93f3c5736d /avahi-sharp/ClientException.cs | |
parent | e285034f90e0856d13a441b0e8d355f9b34aa95b (diff) |
* Add RecordBrowser.cs
* Make all of the events like "standard" .NET ones
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@996 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-sharp/ClientException.cs')
-rw-r--r-- | avahi-sharp/ClientException.cs | 17 |
1 files changed, 16 insertions, 1 deletions
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 { |