Skip to content

Commit 5c3efe6

Browse files
committed
Updating latest C# Web Forms SDK and minor fixes as a result
1 parent 23f8361 commit 5c3efe6

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

launcher-csharp/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ public void ConfigureServices(IServiceCollection services)
183183
{
184184
List<string> scopesForCurrentApi = this.apiTypes.GetValueOrDefault(Enum.Parse<ExamplesApiType>(this.Configuration["API"]));
185185

186-
187186
redirectContext.RedirectUri = this.UpdateRedirectUriScopes(redirectContext.RedirectUri, scopesForCurrentApi);
188187

189188
redirectContext.HttpContext.Response.Redirect(redirectContext.RedirectUri);

launcher-csharp/WebForms/Controllers/CreateAndEmbedForm.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public ActionResult EmbedForm()
9898

9999
WebFormSummaryList forms = CreateAndEmbedFormService.GetForms(
100100
docuSignClient,
101-
Guid.Parse(accountId));
101+
accountId);
102102

103103
if (forms.Items == null || forms.Items.Count == 0)
104104
{
@@ -109,10 +109,10 @@ public ActionResult EmbedForm()
109109
return this.View("embedForm");
110110
}
111111

112-
Guid? formId = forms.Items.First(x => x.FormProperties.Name == TemplateName).Id;
112+
string formId = forms.Items.First(x => x.FormProperties.Name == TemplateName).Id;
113113
WebFormInstance form = CreateAndEmbedFormService.CreateInstance(
114114
docuSignClient,
115-
Guid.Parse(accountId),
115+
accountId,
116116
formId);
117117

118118
this.ViewBag.InstanceToken = form.InstanceToken;

launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace DocuSign.WebForms.Examples
1515

1616
public static class CreateAndEmbedFormService
1717
{
18-
public static WebFormSummaryList GetForms(Client.DocuSignClient docuSignClient, Guid? accountId)
18+
public static WebFormSummaryList GetForms(Client.DocuSignClient docuSignClient, string accountId)
1919
{
2020
FormManagementApi formManagementApi = new FormManagementApi(docuSignClient);
2121
return formManagementApi.ListForms(accountId);
@@ -40,8 +40,8 @@ public static void AddTemplateIdToForm(string fileLocation, string templateId)
4040

4141
public static WebFormInstance CreateInstance(
4242
Client.DocuSignClient docuSignClient,
43-
Guid? accountId,
44-
Guid? formId)
43+
string accountId,
44+
string formId)
4545
{
4646
FormInstanceManagementApi formManagementApi = new FormInstanceManagementApi(docuSignClient);
4747
var formValues = new WebFormValues

launcher-csharp/launcher-csharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<PackageReference Include="DocuSign.eSign.dll" Version="6.6.0" />
4242
<PackageReference Include="DocuSign.Monitor" Version="1.1.1" />
4343
<PackageReference Include="DocuSign.Rooms" Version="1.3.0" />
44-
<PackageReference Include="DocuSign.WebForms" Version="1.0.0-rc05" />
44+
<PackageReference Include="DocuSign.WebForms" Version="1.0.0-rc7" />
4545
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
4646
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0-preview1.19506.2" />
4747
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0-preview1.19506.2">

0 commit comments

Comments
 (0)