Skip to content

Commit 19cac58

Browse files
committed
Merge branch 'master' into feature/create-account-example
2 parents 0875d3b + 511180a commit 19cac58

File tree

27 files changed

+147
-84
lines changed

27 files changed

+147
-84
lines changed

JWT-Console/JWT-Console.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="DocuSign.Admin" Version="1.4.0" />
33-
<PackageReference Include="DocuSign.eSign.dll" Version="6.6.0" />
34-
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
35-
<PackageReference Include="System.Runtime.Caching" Version="4.7.0" />
32+
<PackageReference Include="DocuSign.eSign.dll" Version="7.0.0-rc1" />
33+
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
34+
<PackageReference Include="System.Runtime.Caching" Version="7.0.0" />
3635
</ItemGroup>
3736

3837
</Project>

Quick_ACG/Quick_ACG.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@
4747
</ItemGroup>
4848

4949
<ItemGroup>
50-
<PackageReference Include="DocuSign.Admin" Version="1.4.0" />
51-
<PackageReference Include="DocuSign.eSign.dll" Version="6.6.0" />
50+
<PackageReference Include="DocuSign.Admin" Version="2.0.0-rc1" />
51+
<PackageReference Include="DocuSign.eSign.dll" Version="7.0.0-rc1" />
5252
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
53-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0-preview1.19506.2" />
54-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0-preview1.19506.2">
53+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.18" />
54+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.29">
5555
<PrivateAssets>all</PrivateAssets>
5656
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5757
</PackageReference>
5858
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="6.0.0" />
59-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.4" />
60-
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
59+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.16" />
60+
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
6161
</ItemGroup>
6262

6363
<ItemGroup>

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# C# Launcher Code Examples
2-
2+
>
3+
>### PLEASE! Share your feedback in a [two-question survey](https://docs.google.com/forms/d/e/1FAIpQLScPa74hwhJwi7XWDDj4-XZVOQTF9jJWgbIFEpulXokCqYWT4A/viewform?usp=pp_url&entry.680551577=C%23).
4+
>
5+
>
36
### GitHub repo: [code-examples-csharp](./README.md)
47

5-
This GitHub repo includes code examples for the DocuSign Admin API, Click API, eSignature REST API, Monitor API, and Rooms API. To switch between API code examples, modify the `ExamplesAPI` setting from `ESignature` to `Admin`, `Click`, `Monitor`, or `Rooms`, in the appsettings.json file.
8+
This GitHub repo includes code examples for the [Web Forms API](https://developers.docusign.com/docs/web-forms-api/), [Maestro API](https://developers.docusign.com/docs/maestro-api/), [Docusign Admin API](https://developers.docusign.com/docs/admin-api/), [Click API](https://developers.docusign.com/docs/click-api/), [eSignature REST API](https://developers.docusign.com/docs/esign-rest-api/), [Monitor API](https://developers.docusign.com/docs/monitor-api/), and [Rooms API](https://developers.docusign.com/docs/rooms-api/).
69

710

811
## Introduction

launcher-csharp.Tests/launcher-csharp.Tests.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="DocuSign.Admin" Version="1.4.0" />
28-
<PackageReference Include="FluentAssertions" Version="6.8.0" />
29-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
30-
<PackageReference Include="xunit" Version="2.4.2" />
31-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
27+
<PackageReference Include="DocuSign.Admin" Version="2.0.0-rc1" />
28+
<PackageReference Include="FluentAssertions" Version="6.12.0" />
29+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
30+
<PackageReference Include="xunit" Version="2.7.1" />
31+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
3232
<PrivateAssets>all</PrivateAssets>
3333
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3434
</PackageReference>
35-
<PackageReference Include="coverlet.collector" Version="3.2.0">
35+
<PackageReference Include="coverlet.collector" Version="6.0.2">
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3838
</PackageReference>

launcher-csharp/Admin/Controllers/CreateCLMESignUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected override void InitializeInternal()
106106

107107
//ds-snippet-start:Admin2Step3
108108
var productPermissionProfileApi = new ProductPermissionProfilesApi(apiClient);
109-
var productPermissionProfiles = productPermissionProfileApi.GetProductPermissionProfiles(organizationId, Guid.Parse(accountId));
109+
var productPermissionProfiles = productPermissionProfileApi.GetProductPermissionProfiles(organizationId.Value, Guid.Parse(accountId));
110110
this.ViewBag.CLMPermissionProfiles = productPermissionProfiles.ProductPermissionProfiles.Find(x => x.ProductName == "CLM").PermissionProfiles;
111111
this.ViewBag.ESignPermissionProfiles = productPermissionProfiles.ProductPermissionProfiles.Find(x => x.ProductName == "ESign").PermissionProfiles;
112112
clmProductId = productPermissionProfiles.ProductPermissionProfiles.Find(x => x.ProductName == "CLM").ProductId;

launcher-csharp/Admin/Controllers/DeleteUserDataFromAccount.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace DocuSign.CodeExamples.Admin.Controllers
1717
using Newtonsoft.Json;
1818

1919
[Area("Admin")]
20-
[Route("Aeg011")]
20+
[Route("aeg011")]
2121
public class DeleteUserDataFromAccount : EgController
2222
{
2323
public DeleteUserDataFromAccount(DsConfiguration config, LauncherTexts launcherTexts, IRequestItemsService requestItemsService)
@@ -27,7 +27,7 @@ public DeleteUserDataFromAccount(DsConfiguration config, LauncherTexts launcherT
2727
this.ViewBag.title = this.CodeExampleText.ExampleName;
2828
}
2929

30-
public override string EgName => "Aeg011";
30+
public override string EgName => "aeg011";
3131

3232
[MustAuthenticate]
3333
[SetViewBag]

launcher-csharp/Admin/Controllers/DeleteUserDataFromOrganization.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace DocuSign.CodeExamples.Admin.Controllers
1717
using Newtonsoft.Json;
1818

1919
[Area("Admin")]
20-
[Route("Aeg010")]
20+
[Route("aeg010")]
2121
public class DeleteUserDataFromOrganization : EgController
2222
{
2323
public DeleteUserDataFromOrganization(DsConfiguration config, LauncherTexts launcherTexts, IRequestItemsService requestItemsService)
@@ -27,7 +27,7 @@ public DeleteUserDataFromOrganization(DsConfiguration config, LauncherTexts laun
2727
this.ViewBag.title = this.CodeExampleText.ExampleName;
2828
}
2929

30-
public override string EgName => "Aeg010";
30+
public override string EgName => "aeg010";
3131

3232
[MustAuthenticate]
3333
[SetViewBag]

launcher-csharp/Maestro/Controllers/TriggerWorkflow.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ public ActionResult SubmitForm(WorkflowTriggerModel model)
150150
docuSignManageClient,
151151
accountId,
152152
new Uri(workflow.TriggerUrl),
153-
model);
153+
model,
154+
this.RequestItemsService.WorkflowId);
154155

155156
this.RequestItemsService.InstanceId = result.InstanceId;
156157

launcher-csharp/Maestro/Examples/TriggerWorkflowService.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ public static string PublishWorkFlow(DocuSignClient docuSignClient, string accou
5050
}
5151
}
5252

53-
public static TriggerWorkflowViaPostResponse TriggerWorkflow(DocuSignClient docuSignClient, string accountId, Uri triggerUrl, WorkflowTriggerModel model)
53+
public static TriggerWorkflowViaPostResponse TriggerWorkflow(
54+
DocuSignClient docuSignClient,
55+
string accountId,
56+
Uri triggerUrl,
57+
WorkflowTriggerModel model,
58+
string workflowId)
5459
{
5560
//ds-snippet-start:Maestro1Step4
5661
var maestroApi = new WorkflowTriggerApi(docuSignClient);
@@ -76,7 +81,7 @@ public static TriggerWorkflowViaPostResponse TriggerWorkflow(DocuSignClient docu
7681
};
7782
//ds-snippet-end:Maestro1Step4
7883
//ds-snippet-start:Maestro1Step5
79-
return maestroApi.TriggerWorkflow(accountId, payload, options);
84+
return maestroApi.TriggerWorkflow(accountId, workflowId, payload, options);
8085
//ds-snippet-end:Maestro1Step5
8186
}
8287
}

launcher-csharp/Views/Home/Index.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
Boolean.TryParse(ViewData["showDoc"].ToString(), out showDoc);//ViewBag.ShowDoc;
77
Layout = "_HomeLayout";
88
}
9-
<div class="jumbotron">
9+
<div class="jumbotron" style="background-color: #210058!important">
1010
<table>
1111
<tbody>
1212
<tr>
1313
<td>
14-
<h1 class="display-4">C# Launcher</h1>
14+
<h1 class="display-4" style="background-color: #210058!important">C# Launcher</h1>
1515
<p class="Xlead">
1616
@Html.Raw(ViewBag.SupportingTexts.HomePageText)
1717
</p>
1818
</td>
1919
<td>
20-
<img src="/images/banner-code.PNG" />
20+
<img src="/images/header.PNG" />
2121
</td>
2222
</tr>
2323
</tbody>

0 commit comments

Comments
 (0)