Example #1
0
        public void Log(LogLevel level, string message, Dictionary <string, string> fields)
        {
            var nativeMapPtr = Convertions.DictionaryToNativeMapMem(fields);

            CBridge.ctx_log(TaskId, (int)level, message, nativeMapPtr);
            Memory.FreeNativeMap(nativeMapPtr);
        }
Example #2
0
 public IList <string> RequestedMetrics()
 {
     return(Convertions.NativeStringArrayToList(CBridge.ctx_requested_metrics(TaskId)));
 }
Example #3
0
 public IList <string> ConfigKeys()
 {
     return(Convertions.NativeStringArrayToList(CBridge.ctx_config_keys(TaskId)));
 }
Example #4
0
 internal override void Apply(NativeModifiers nModifier)
 {
     nModifier.tagsToRemove = Convertions.DictionaryToNativeMapMem(_tags);
 }