[C#] Check in initial auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / LockedChannelMonitor.cs
diff --git a/c_sharp/src/org/ldk/structs/LockedChannelMonitor.cs b/c_sharp/src/org/ldk/structs/LockedChannelMonitor.cs
new file mode 100644 (file)
index 0000000..35ded46
--- /dev/null
@@ -0,0 +1,22 @@
+using org.ldk.impl;
+using org.ldk.enums;
+using org.ldk.util;
+using System;
+
+namespace org { namespace ldk { namespace structs {
+
+
+/**
+ * A read-only reference to a current ChannelMonitor.
+ * 
+ * Note that this holds a mutex in [`ChainMonitor`] and may block other events until it is
+ * released.
+ */
+public class LockedChannelMonitor : CommonBase, IDisposable {
+       internal LockedChannelMonitor(object _dummy, long ptr) : base(ptr) { }
+       public void Dispose() {
+               if (ptr != 0) { bindings.LockedChannelMonitor_free(ptr); }
+       }
+
+}
+} } }