Skip to content

Commit

Permalink
Resolved issues the ASP Net Core work had introduced into fsharp
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesRandall committed Feb 6, 2020
1 parent c8a80c7 commit 17740ad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<CommonPackageVersion>4.0.38-beta.4</CommonPackageVersion>
<CommonPackageVersion>4.0.39-beta.4</CommonPackageVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected AbstractFunctionDefinition(string namePrefix, Type commandType, Type e
Name = string.Concat(namePrefix,commandType.GetFunctionName());
CommandType = commandType;
_explicitCommandResultType = explicitCommandResultType;
CommandResultType = explicitCommandResultType;
}

public IReadOnlyCollection<ImmutableTypeConstructorParameter> ImmutableTypeConstructorParameters { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ protected AbstractOutputBinding(string commandResultTypeItemName)
_commandResultTypeItemName = commandResultTypeItemName;
}

public string CommandResultItemTypeName => _associatedFunctionDefinition.CommandResultItemTypeName ?? _commandResultTypeItemName;
public string CommandResultItemTypeName => _associatedFunctionDefinition?.CommandResultItemTypeName ?? _commandResultTypeItemName;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>FunctionMonkey.Compiler</id>
<version>4.0.38-beta.4</version>
<version>4.0.39-beta.4</version>
<authors>James Randall</authors>
<description>Generates Azure Functions from command registrations</description>
<licenseUrl>https://raw.githubusercontent.com/JamesRandall/FunctionMonkey/master/LICENSE</licenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion Source/FunctionMonkey/RuntimeInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public RuntimeInstance(Assembly functionAppConfigurationAssembly,
compileTarget = functionCompilerMetadata.CompilerOptions.HttpTarget;
}

RegisterCoreDependencies(builder.MediatorType, FunctionDefinitions, compileTarget);
RegisterCoreDependencies(builder?.MediatorType ?? typeof(DefaultMediatorDecorator), FunctionDefinitions, compileTarget);

RegisterTimerCommandFactories(FunctionDefinitions);

Expand Down
1 change: 1 addition & 0 deletions pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ dotnet pack ./Source/FunctionMonkey.Testing/FunctionMonkey.Testing.csproj --outp
dotnet pack ./Source/FunctionMonkey.TokenValidator/FunctionMonkey.TokenValidator.csproj --output ./ --configuration Release
dotnet pack ./Source/FunctionMonkey.AspNetCore/FunctionMonkey.AspNetCore.csproj --output ./ --configuration Release
dotnet pack ./Source/FunctionMonkey.FSharp/FunctionMonkey.FSharp.fsproj --output ./ --configuration Release
dotnet pack ./Source/FunctionMonkey.MediatR/FunctionMonkey.MediatR.fsproj --output ./ --configuration Release

0 comments on commit 17740ad

Please sign in to comment.