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); }
public IList <string> RequestedMetrics() { return(Convertions.NativeStringArrayToList(CBridge.ctx_requested_metrics(TaskId))); }
public IList <string> ConfigKeys() { return(Convertions.NativeStringArrayToList(CBridge.ctx_config_keys(TaskId))); }
internal override void Apply(NativeModifiers nModifier) { nModifier.tagsToRemove = Convertions.DictionaryToNativeMapMem(_tags); }