microcule icon indicating copy to clipboard operation
microcule copied to clipboard

Add c# .net core support

Open Marak opened this issue 8 years ago • 4 comments

@janaka

This looks awesome! I've opened a PR to begin to review the changes for .net support.

I've been planning on doing a new release soon, so let me know if there was anything else you wanted to add or change.

Marak avatar Aug 30 '17 19:08 Marak

Awesome thanks.

I'd like to add some user documentation around how to create .NET Core services as a minimum.

Since I've realised that requiring the service to be a full console app project may be is unnecessary and somewhat un-FaaS like. This could be improved to only require a *.cs containing a class, templating the rest out. However, I need to think through how a user would add dependencies would work without direct access to the csproj file.

TODO

  • [ ] Check if C# .NET Core is supporting all required/expected functionality
  • [ ] Regression test to make sure nothing broke during adding .NET Core support
  • [ ] Refactor language specific logic that's scattered around into the plugin architecture (general improvement)
  • [ ] check performance - noticed some lag spitting out responses on the page in the hello world example.

The first two are probably sensible to tackle. Without the last one, it may need to go out with a beta label.

Let me know your thoughts.

janaka avatar Aug 30 '17 20:08 janaka

That all makes sense. I've been working on a few changes to some internals in another branch, but I don't think they will affect anything I've seen in this PR.

I don't do much work with dotnet, but I'd like to see this added. Not sure what qualifies as a dotnet console app, but I'd like to see this supported for http server applications.

Please make sure to try and encapsulate the dotnet logic as much as possible. I see we've added originalCodeFilePath. Not sure if that's something dotnet specific or that we should add to the API.

Please let me know if have any questions. I'm okay with Beta support to start. Thank you again for your contributions.

Marak avatar Aug 30 '17 20:08 Marak

Agreed. The change I'm suggesting should mean that this property on the service object is not required. I haven't thought through this change in detail yet though. I'll try and make some time next week to do that.

On 30 Aug 2017 9:52 pm, "Marak" [email protected] wrote:

That all makes sense. I've been working on a few changes to some internals in another branch, but I don't think they will affect anything I've seen in this PR.

I don't do much work with dotnet, but I'd like to see this added. Not sure what qualifies as a dotnet console app, but I'd like to see this supported for http server applications.

Please make sure to try and encapsulate the dotnet logic as much as possible. I see we've added originalCodeFilePath. Not sure if that's something dotnet specific or that we should add to the API.

Please let me know if have any questions. I'm okay with Beta support to start. Thank you again for your contributions.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Stackvana/microcule/pull/40#issuecomment-326115885, or mute the thread https://github.com/notifications/unsubscribe-auth/AADKQ28y8QXfEGTYlwXF1s9DyD0NCarhks5sdcuGgaJpZM4PH364 .

janaka avatar Sep 01 '17 10:09 janaka

Hi, I'm sorry I did not get to this as promised. Obviously wasn't able to make time as I was away.

I'll have to ramp up on it again, hopefully far less time consuming for me than last time.

janaka avatar Feb 18 '18 16:02 janaka