From e72a3b285a5177d745c2118f58bf93ac146c2ba3 Mon Sep 17 00:00:00 2001 From: Stefan Persson Date: Thu, 4 Nov 2010 16:07:39 +0000 Subject: [PATCH] Added tdClose-method, to be called after use of static methods. --- bindings/dotnet/TelldusNETWrapper/TelldusNETWrapper.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bindings/dotnet/TelldusNETWrapper/TelldusNETWrapper.cs b/bindings/dotnet/TelldusNETWrapper/TelldusNETWrapper.cs index b2f212a7..9f46353a 100644 --- a/bindings/dotnet/TelldusNETWrapper/TelldusNETWrapper.cs +++ b/bindings/dotnet/TelldusNETWrapper/TelldusNETWrapper.cs @@ -232,6 +232,16 @@ namespace TelldusWrapper return UnmanagedImport.tdBell(deviceId); } + /// + /// Close the library and clean up the cache it uses. + /// This should be called when the library is not supposed to be used anymore. + /// Do not use when this has been instantiated, will be closed in destructor then, only on static methods. + /// + public static void tdClose() + { + UnmanagedImport.tdClose(); + } + /// /// Dims a device. /// Make sure the device supports this by calling tdMethods() before any calls to this function.