Skip to content

Commit

Permalink
Add optional ClientSessionId to supported requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Padmore authored and icecoldfire committed Dec 21, 2018
1 parent 2fa707f commit 1a48f0f
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 6 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


## Examples
### Creating an client
### Creating a client
```
var auth0ClientId = "";
var auth0ClientSecret = "";
Expand All @@ -35,10 +35,13 @@ var request = new ExecuteCalculationRequest()
Version = 1,
Revision = null,
Root = new Dictionary<string, object>
{
{ "Input", 5 }
},
EntryPoint = "RootBlock"
{
{ "Input", 5 }
},
EntryPoint = "RootBlock",
// Optionally specify an identifier to mark multiple calls as part of a single user session
ClientSessionId = "my-session-identifier"
};
var calculation = client.Calculation.Execute(request);
calculation.Wait();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ namespace Viren.Execution.Requests.Calculations
public class DebugCalculationRequest
{
public string Id { get; set; }

public string ClientSessionId { get; set; }
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public class ExecuteCalculationRequest
public bool? Debug { get; set; }

public bool? Full { get; set; }

public string ClientSessionId { get; set; }
}

public class ExecuteCalculationResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public ExecuteCalculationsAsyncRequest()

public bool? Debug { get; set; }
public bool? Full { get; set; }

public string ClientSessionId { get; set; }
}

public class ExecuteCalculationsAsyncResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public ExecuteCalculationsRequest()
public bool? Full { get; set; }

public IList<CalculationInputDto> CalculationInputs { get; set; }

public string ClientSessionId { get; set; }
}

public class ExecuteCalculationsResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class ExecuteTestCalculationRequest
public IDictionary<string, object> Globals { get; set; }
public bool? Debug { get; set; }
public bool? Full { get; set; }

public string ClientSessionId { get; set; }
}

public class ExecuteTestCalculationResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public OptimizeCalculationRequest()

public IList<OptimizeInputInfoDto> OptimizeInputs { get; set; }
public OptimizeOutputInfoDto OptimizeOutput { get; set; }

public string ClientSessionId { get; set; }
}

public class OptimizeCalculationResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class TestCalculationsImportRequest
public int TotalCalculations { get; set; }

public bool? Full { get; set; }

public string ClientSessionId { get; set; }
}

public class TestCalculationsImportResponse
Expand Down
2 changes: 1 addition & 1 deletion src/Viren.Execution/Viren.Execution.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Version>0.4.0</Version>
<Version>0.5.0</Version>
<Authors>Teal Partners</Authors>
<Product>Viren execution .NET client</Product>
<RepositoryUrl>https://github.com/tealpartners/viren.net</RepositoryUrl>
Expand Down

0 comments on commit 1a48f0f

Please sign in to comment.