Exemple #1
0
 public void SetCurrentStatusCallback(Action <GalileoStatus> statusCB = null)
 {
     onStatusUpdateCB = (status, statusJson, length) => {
         byte[] result = new byte[length];
         Marshal.Copy(statusJson, result, 0, (int)length);
         var statusStr = Encoding.ASCII.GetString(result, 0, (int)length);
         statusCB?.Invoke(JsonConvert.DeserializeObject <GalileoStatus>(statusStr));
     };
     GalileoFunctions.SetCurrentStatusCallback(instance, onStatusUpdateCB);
 }
 internal static extern GALILEO_RETURN_CODE SetCurrentStatusCallback(IntPtr sdk, StatusUpdatedDelegate statusUpdate);
Exemple #3
0
 public override void SetUp()
 {
     base.SetUp();
     StatusUpdatedEvent += new StatusUpdatedDelegate(SetStatus);
 }