Some clean up and tweaks to get the shell UI shown (finally).
This commit is contained in:
1 parent
b38fed070e
commit
2d6d93b6da
5 files changed
+11
-4
No files matched your search
@@ -8,6 +8,7 @@ using System.Threading.Tasks;
|
||||
using System.Reactive.Linq;
|
||||
using System.IO;
|
||||
using System.Reactive.Disposables;
|
||||
using mbts;
|
||||
|
||||
namespace bts.api.core {
|
||||
|
||||
@@ -17,6 +18,7 @@ namespace bts.api.core {
|
||||
|
||||
public QuickbusClientChannel(ServiceContext context, string type_name, string qualifier) : base(context) {
|
||||
_client = ApiNativeMethods.api_client_create(context.native_context, type_name, qualifier);
|
||||
System.Diagnostics.Trace.Assert(_client != IntPtr.Zero);
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
@@ -48,6 +50,7 @@ namespace bts.api.core {
|
||||
tcs.TrySetResult(new Result<Response>(res.header.Code));
|
||||
}
|
||||
};
|
||||
System.Diagnostics.Trace.Assert(_client != IntPtr.Zero, "Channel may have been disposed");
|
||||
ApiNativeMethods.api_client_send(_client, buffer, buffer.Length, callback, IntPtr.Zero);
|
||||
tcs.Task.ContinueWith(_ => GC.KeepAlive(callback));
|
||||
return tcs.Task;
|
||||
|
||||
Reference in new issue
Block a user