fsprojects / Amazon.SimpleWorkflow.Extensions

Extensions to AmazonSDK's SimpleWorkflow capabilities to make it more intuitive to use
http://fsprojects.github.io/Amazon.SimpleWorkflow.Extensions
MIT License
16 stars 10 forks source link

Usage in C# #29

Closed jtreuting closed 11 years ago

jtreuting commented 11 years ago

Do you have any examples of using this in C#? I've never worked with the FSharpOption type that is in the constructor for the Workflow class.

theburningmonk commented 11 years ago

Not yet, still deciding what the usage pattern should be in C# since the ++> operator that is used to link up activities and child workflows is not usable from C# either.

I hope to be able to spend some more time to sort it out soon though.

In F#, you can specify optional method parameter with the FSharpOption type, which you can still instantiate from C# with FSharpOption.None to represent the absence of a value (has the same effect has not providing a value for the optional parameter) though it's not pretty.