[tasque/transition: 114/213] Adjust backend recognition since it's no longer an interface
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 114/213] Adjust backend recognition since it's no longer an interface
- Date: Wed, 29 Aug 2012 18:43:36 +0000 (UTC)
commit d5fb0dd7006223ff67c70ccf51c559c5f07a6b1e
Author: Antonius Riha <antoniusriha gmail com>
Date: Thu Aug 16 14:00:52 2012 +0200
Adjust backend recognition since it's no longer an interface
src/libtasque/Application.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtasque/Application.cs b/src/libtasque/Application.cs
index 53c5206..7adb421 100644
--- a/src/libtasque/Application.cs
+++ b/src/libtasque/Application.cs
@@ -307,7 +307,8 @@ namespace Tasque
foreach (var type in types) {
if (!type.IsClass)
continue; // Skip non-class types
- if (type.GetInterface ("Tasque.Backends.IBackend") == null)
+
+ if (!typeof(Backend).IsAssignableFrom (type))
continue;
Debug.WriteLine ("Found Available Backend: {0}", type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]