Skip to content

Commit

Permalink
2007-08-28 Aaron Bockover <[email protected]>
Browse files Browse the repository at this point in the history
    0.7.2 Released

    * configure.ac: Bump to 0.7.2

    * src/Mono.Zeroconf.Providers.Avahi/Mono.Zeroconf.Providers.Avahi/ZeroconfProvider.cs:
    Try to connect to the daemon to see if provider will be available

    * src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs: Throw
    a meaningful exception if no providers are available


svn path=/trunk/Mono.Zeroconf/; revision=84975
  • Loading branch information
abock committed Aug 28, 2007
1 parent bd3b60b commit 514c111
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
2007-08-28 Aaron Bockover <[email protected]>

0.7.2 Released

* configure.ac: Bump to 0.7.2

* src/Mono.Zeroconf.Providers.Avahi/Mono.Zeroconf.Providers.Avahi/ZeroconfProvider.cs:
Try to connect to the daemon to see if provider will be available

* src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs: Throw
a meaningful exception if no providers are available

2007-08-28 Aaron Bockover <[email protected]>

* docs/*: Updated docs
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([Mono.Zeroconf], [0.7.1])
AC_INIT([Mono.Zeroconf], [0.7.2])
AC_CANONICAL_SYSTEM
AC_PREREQ(2.13)
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
using System;
using System.Collections;

using AV=Avahi;

[assembly:Mono.Zeroconf.Providers.ZeroconfProvider(typeof(Mono.Zeroconf.Providers.Avahi.ZeroconfProvider))]

namespace Mono.Zeroconf.Providers.Avahi
Expand All @@ -37,6 +39,8 @@ public class ZeroconfProvider : IZeroconfProvider
{
public void Initialize()
{
AV.Client client = new AV.Client();
client.Dispose();
}

public Type ServiceBrowser {
Expand Down
6 changes: 5 additions & 1 deletion src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,18 @@ private static IZeroconfProvider [] GetProviders()
try {
provider.Initialize();
providers_list.Add(provider);
} catch {
} catch {
}
}
}
}
}
}

if(providers_list.Count == 0) {
throw new Exception("No Zeroconf providers could be found or initialized. Necessary daemon may not be running.");
}

providers = providers_list.ToArray();

return providers;
Expand Down

0 comments on commit 514c111

Please sign in to comment.