Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Samples for module devloped in .Net and using .Net bindings #11

Closed
tedvanderveen opened this issue Jun 23, 2016 · 7 comments
Closed

Samples for module devloped in .Net and using .Net bindings #11

tedvanderveen opened this issue Jun 23, 2016 · 7 comments

Comments

@tedvanderveen
Copy link

tedvanderveen commented Jun 23, 2016

Please provide sample code for developing modules in C#/.Net using the .Net bindings.
Can the .Net implementations of IGatewayModule also reference other .Net assemblies? Do these DLLs then need to be included in the json configuration file?

@aribeironovaes
Copy link
Contributor

Thanks again for the feedback Ted.

.Net Binding is under development right now, so sample code (and How To
Guide Document) is on it's way to github.

Angelo Ribeiro.

On Thu, Jun 23, 2016 at 6:29 AM, Ted van der Veen notifications@github.com
wrote:

Please provide sample code for developing modules in C#/.Net using the
.Net bindings


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#11, or mute the
thread
https://github.com/notifications/unsubscribe/AI75b6Ot7pDfXXaak9QC9hCPbFKTdRb-ks5qOoojgaJpZM4I8zzB
.


Angelo Ribeiro
Msc - Federal University of Pernambuco
Team in Training Alumni Triple Crowned! :)

@tedvanderveen
Copy link
Author

tedvanderveen commented Jun 23, 2016

Great. Any estimate on availability? Combined with #10 maybe?

@aribeironovaes
Copy link
Contributor

Hi Ted,

i just missed the second part of your question. "Can the .Net implementations of IGatewayModule also reference other .Net assemblies? Can the .Net implementations of IGatewayModule also reference other .Net assemblies?"

So, yes, your module in .NET (implementing IGatewayModule) can also reference other .Net Assemblies. These other doesn't need to be on the JSON configuration file. The format of the JSON file so far will have:
"module name": "csharp_hello_world",
"module path": "/path/to/dotnet_hl.dll", ==> This is the native dotnet host module that will bind our native implementation and .NET.
"args": {
"dotnet_module_path": "/path/to/csharp_module.dll", ==> This is your .NET Module that Implements the IGateway module,
"dotnet_module_entry_class": "mycsharpmodule.classname", ==> Class name that has the Create, Receive and DEstroy.
"dotnet_module_args": "module configuration" ==> This would be any configuration you woud want to use in your module.
}

Other DLLS referenced on your csharp_module.dll, for example, would follow whatever mechanism you want.

Regarding the estimate, the samples and more doc is what I'm working right now. So, you shall expect this to be on develop very soon. (depends on Reviews, etc.).

The Nuget package I don't have an estimate for that, will depends on prioritization on our backlog.

Let me know if you have more questions,

Thanks,

Angelo Ribeiro.

@tedvanderveen
Copy link
Author

@aribeironovaes Thanks again! Can you contact me at ted@vanderveen.net please? I have a more general question about the lib. Or are you in a Slack community where I can contact you maybe?

@aribeironovaes
Copy link
Contributor

You're welcome Ted,

No, we don't have an external Slack Community.

The best way to reach us out is from GitHub Issues or Stack Overflow (especially the iot-gateway-sdk tag). This is the best way so others can also learn from your questions/answers and also the whole team is monitoring these messages, so if I don't see a message somebody else on the team will answer that.

That said feel free to send me a message with questions, but try to ask them here, I think it's better.

Let me know,

Angelo Ribeiro.

@aribeironovaes
Copy link
Contributor

Hi Ted,

Hopefully I was able to answer this question. I'm going ahead and close this issue. Feel free to ask more questions. You can take a look into latest version os .NET Binding (develop branch), keep in mind that since it's develop branch is can/may change, but the bulk of development is there already.

Let us know,

Angelo Ribeiro.

@tedvanderveen
Copy link
Author

Thanks for the initial samples @aribeironovaes :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants