1- // <copyright file="Eg044FocusedViewController .cs" company="DocuSign">
1+ // <copyright file="FocusedView .cs" company="DocuSign">
22// Copyright (c) DocuSign. All rights reserved.
33// </copyright>
44
55namespace DocuSign . CodeExamples . Views
66{
77 using System ;
8+ using System . Runtime . InteropServices ;
89 using DocuSign . CodeExamples . Common ;
910 using DocuSign . CodeExamples . Controllers ;
1011 using DocuSign . CodeExamples . Models ;
11- using System . Runtime . InteropServices ;
1212 using Microsoft . AspNetCore . Mvc ;
13- using DocuSign . Rooms . Model ;
14- using System . Configuration ;
1513 using Microsoft . Extensions . Configuration ;
1614
1715 [ Area ( "eSignature" ) ]
@@ -22,16 +20,16 @@ public class FocusedView : EgController
2220 private readonly string signerClientId = "1000" ;
2321 private readonly string dsReturnUrl ;
2422 private readonly string dsIntegrationKey ;
25- private readonly IConfiguration _configuration ;
23+ private readonly IConfiguration configuration ;
2624
27- public FocusedView ( DSConfiguration config , IConfiguration configuration , LauncherTexts launcherTexts , IRequestItemsService requestItemsService )
25+ public FocusedView ( DsConfiguration config , IConfiguration configuration , LauncherTexts launcherTexts , IRequestItemsService requestItemsService )
2826 : base ( config , launcherTexts , requestItemsService )
2927 {
3028 this . dsPingUrl = config . AppUrl + "/" ;
3129 this . dsReturnUrl = config . AppUrl + "/dsReturn" ;
32- _configuration = configuration ;
30+ this . configuration = configuration ;
3331
34- this . CodeExampleText = this . GetExampleText ( "eg044" , ExamplesAPIType . ESignature ) ;
32+ this . CodeExampleText = this . GetExampleText ( "eg044" , ExamplesApiType . ESignature ) ;
3533 this . ViewBag . title = this . CodeExampleText . ExampleName ;
3634 }
3735
@@ -53,11 +51,11 @@ public IActionResult Create(string signerEmail, string signerName)
5351 string docPDF ;
5452 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
5553 {
56- docPDF = Convert . ToBoolean ( this . Config . QuickACG ) ? @"../launcher-csharp/" + this . Config . DocPdf : this . Config . DocPdf ;
54+ docPDF = Convert . ToBoolean ( this . Config . QuickAcg ) ? @"../launcher-csharp/" + this . Config . DocPdf : this . Config . DocPdf ;
5755 }
5856 else
5957 {
60- docPDF = Convert . ToBoolean ( this . Config . QuickACG ) ? @"..\\launcher-csharp\\" + this . Config . DocPdf : this . Config . DocPdf ;
58+ docPDF = Convert . ToBoolean ( this . Config . QuickAcg ) ? @"..\\launcher-csharp\\" + this . Config . DocPdf : this . Config . DocPdf ;
6159 }
6260
6361 // Check the token with minimal buffer time.
@@ -88,7 +86,7 @@ public IActionResult Create(string signerEmail, string signerName)
8886 // Save for future use within the example launcher
8987 this . RequestItemsService . EnvelopeId = result . Item1 ;
9088 this . ViewBag . Url = result . Item2 ;
91- this . ViewBag . IntegrationKey = this . _configuration [ "DocuSign:ClientId" ] ;
89+ this . ViewBag . IntegrationKey = this . configuration [ "DocuSign:ClientId" ] ;
9290
9391 // Redirect the user to the Signing Ceremony
9492 return this . View ( "embed" ) ;
0 commit comments