Skip to content

Commit

Permalink
Update specs to 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
idg10 committed Feb 12, 2020
1 parent dbd58f7 commit dbbdbf3
Show file tree
Hide file tree
Showing 4 changed files with 345 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace />
<OutputPath>bin\$(Configuration)\</OutputPath>
<DocumentationFile>$(OutputPath)$(TargetFramework.ToLowerInvariant())\$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ public static class FunctionBindings
/// </summary>
/// <param name="featureContext">The current feature context.</param>
/// <returns>A task that completes when the functions have been started.</returns>
[BeforeFeature("useTenancyFunction", Order = 100)]
public static Task RunPublicApiFunction(FeatureContext featureContext)
[BeforeFeature("useTenancyFunction", Order = ContainerBeforeFeatureOrder.ServiceProviderAvailable)]
public static async Task RunPublicApiFunction(FeatureContext featureContext)
{
var functionsController = new FunctionsController();
featureContext.Set(functionsController);

IConfigurationRoot config = ContainerBindings.GetServiceProvider(featureContext).GetRequiredService<IConfigurationRoot>();
featureContext.CopyToFunctionConfigurationEnvironmentVariables(config);

return functionsController.StartFunctionsInstance(featureContext, null, "Marain.Tenancy.Host.Functions", 7071, "netcoreapp3.1");
await functionsController.StartFunctionsInstance(featureContext, null, "Marain.Tenancy.Host.Functions", 7071, "netcoreapp3.1");
}

/// <summary>
Expand Down
Loading

0 comments on commit dbbdbf3

Please sign in to comment.