synapse
synapse copied to clipboard
Function type : custom usage
Can a function call .net method using function type as 'custom' ?
Not really. Functions in the Serverless Workflow spec are actually "serverless" functions, not "local" functions of your code. That being said, you could probably implement your own Processor. Know that we invision a new version of Synapse that should be way more flexible on the type of actions you could run but it's still in a conceptual phase (and I know it's been a while but we want to take our time to put the right pieces together).
That being said, may I ask which .NET method are you trying to call ?
@mremadevi With Serverless Workflow v1.0.0-alpha1 you can run any process you'd like, using containers, scripts or shell.
Using v1.0.0-alpha1, to call your custom .NET function, you can do any of the following:
- Compile your function(s) into an executable.
- Containerize your function into a new image.
- Execute a run process, using the image compiled at step 2.
document:
dsl: 1.0.0-alpha1
namespace: default
name: test
version: 0.1.0
do:
callNetFunction:
run:
container:
image: containerizedNetApp
You could also run it using a shell command, or running it as script on a runtime that supports .NET as script.
Another couple of weeks and a new Synapse release supporting said feature will see the day ;) Does that answer your question?
@mremadevi I'm gonna assume my last comment answered your question and will therefore close this issue. Feel free to reopen if need be ;)