Title
#general
Mystery Incorporated

Mystery Incorporated

07/01/2022, 3:24 PM
Has anyone built an extension in C#? I think it is possible as Thrift supports it from my reading, but then I can see that it says the extension must import the core code which is c++ so can it be done?
s

seph

07/01/2022, 3:40 PM
You can write an extension in any language that only communicates over thrift. (including c, c++, c#….)
3:40 PM
There are some fragments of support for building “extensions” in c languages that use some of the core libraries. I’m not sure it’s common, and it’s probably just confusing,
3:41 PM
I’m not sure there’s an SDK for c#. There’s a go SDK, and a python SDK. But thrift is thrift, and I’ve certainly done things from ruby.
3:41 PM
I think you can ignore anything about importing core code, and write a standalone extension that uses the thrift socket.
Gavin

Gavin

07/01/2022, 5:39 PM
You may wish to start here https://github.com/noghte/osquery-csharp
Mystery Incorporated

Mystery Incorporated

07/01/2022, 8:56 PM
thanks guys!