Skip to content

OpenDAL C# bindings #2428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #1769
tisonkun opened this issue Jun 7, 2023 · 6 comments
Open
Tracked by #1769

OpenDAL C# bindings #2428

tisonkun opened this issue Jun 7, 2023 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@tisonkun
Copy link
Member

tisonkun commented Jun 7, 2023

Possible binding libraries -

Materials -

@tisonkun tisonkun self-assigned this Jun 7, 2023
@tisonkun
Copy link
Member Author

tisonkun commented Jun 12, 2023

Blocking -

We shall not need to use any binding libraries but simply P/Invoke + extern "C". The binding code can be a bit different to the C bindings for better P/Invoke marshaling. Maybe we can just use the C bindings if later it's figured out not so much difference.

Async -

Using TaskCompletionSource may help. Also, use delegate to callback set up the TaskCompletionSource. But we can postpone this part.

Overall, I still need some time to understand how a dotnet project is organized and loading the native lib.

Ref -

@tisonkun
Copy link
Member Author

tisonkun commented Jun 18, 2023

@tisonkun
Copy link
Member Author

Release assignment. I may not have too much time on this direction recently.

@tisonkun
Copy link
Member Author

For handling memory releasing, take a look at System.Runtime.InteropServices's SafeHandle.

I think we can reimplement the whole confluent-kafka-dotnet solution for bindings.

@tisonkun
Copy link
Member Author

@tisonkun tisonkun added the help wanted Extra attention is needed label Jul 30, 2023
@tisonkun
Copy link
Member Author

About distribution - https://learn.microsoft.com/en-us/nuget/create-packages/supporting-multiple-target-frameworks#architecture-specific-folders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant