private static void StateChanged(C4Replicator *replicator, C4ReplicatorStatus state, void *context)
        {
            var id  = (long)context;
            var obj = _StaticMap[id];

            obj._callback?.Invoke(state, obj._context);
        }
Exemple #2
0
 private static void StateChanged(C4Replicator *replicator, C4ReplicatorStatus state, void *context)
 {
     // Don't throw exceptions here, it will bubble up to native code
     try {
         var id  = (long)context;
         var obj = _StaticMap[id];
         obj._stateChangedCallback?.Invoke(state, obj._context);
     } catch (Exception) { }
 }