Skip to content

Commit

Permalink
Version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Shilkov committed Dec 13, 2018
1 parent a19abeb commit fd0ae9e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ as the second parameter. Azure Function still has to be defined separately:

``` fsharp
[<FunctionName("SayTyped")>]
let SayHello([<ActivityTrigger>] name) = sayHello.run name
let SayHello([<ActivityTrigger>] name) = Activity.run sayHello name
```

The orchestrator can now infer types from the activity type:
Expand Down
3 changes: 3 additions & 0 deletions src/DurableFunctions.FSharp/Activity.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ module Activity =
run = fun x -> f x |> Async.StartAsTask
}

/// Runs the activity
let run activity = activity.run

/// Call an activity by name, passing an object as its input argument
/// and specifying the type to expect for the activity output.
let callByName<'a> (name: string) arg (c: DurableOrchestrationContext) =
Expand Down
16 changes: 16 additions & 0 deletions src/DurableFunctions.FSharp/DurableFunctions.FSharp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,20 @@
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="1.7.0" />
</ItemGroup>

<!-- NuGet Publishing Metadata -->
<PropertyGroup>
<Title>Azure Functions F# API</Title>
<Authors>Mikhail Shilkov</Authors>
<Description>F#-friendly API layer for Azure Durable Functions</Description>
<PackageReleaseNotes>https://github.com/mikhailshilkov/DurableFunctions.FSharp/releases/</PackageReleaseNotes>
<PackageTags>Azure;Durable;Extension;Orchestration;Workflow;Functions;FSharp</PackageTags>
<PackageLicenseUrl>https://github.com/mikhailshilkov/DurableFunctions.FSharp/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/mikhailshilkov/DurableFunctions.FSharp</PackageProjectUrl>
<IncludeSymbols>true</IncludeSymbols>
<RepositoryUrl>https://github.com/mikhailshilkov/DurableFunctions.FSharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.1.0</Version>
</PropertyGroup>
</Project>

0 comments on commit fd0ae9e

Please sign in to comment.