Skip to content

Commit

Permalink
Merge pull request #104 from autodesk-platform-services/DAS-290-x-ads…
Browse files Browse the repository at this point in the history
…-force-gets-ignored

[DAS 290] - Fix for x-ads-force-gets-ignored
  • Loading branch information
sajith-subramanian authored Oct 28, 2024
2 parents 4eddd24 + 5e0d54f commit ea86576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions modelderivative/source/LocalMarshalling.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public static string ParameterToString(object obj)
// https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings#Roundtrip
return ((DateTime)obj).ToString ("o");
}
if (obj is Boolean)
{
return (Boolean)obj ? "true" : "false";
}
else
{
return Convert.ToString (obj);
Expand Down
2 changes: 1 addition & 1 deletion samples/modelderivative.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public async Task GetDerivativeHeadersAsync()

#endregion

public async void Main()
public async static Task Main()
{

// Initialise SDKManager & ModelDerivativeClient
Expand Down

0 comments on commit ea86576

Please sign in to comment.