From 9447a8a09f87d6ea2cb62860021c595386668eec Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 20 Feb 2019 22:55:15 +0200 Subject: A lot of work !!! --- .../Templates/TangoWebClientCodeFile.cshtml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Tango.CodeGeneration') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/TangoWebClientCodeFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/TangoWebClientCodeFile.cshtml index 100171849..7d9ebc075 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/TangoWebClientCodeFile.cshtml +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/TangoWebClientCodeFile.cshtml @@ -1,10 +1,9 @@ @{ Tango.CodeGeneration.TangoWebClientCodeFile model = Model as Tango.CodeGeneration.TangoWebClientCodeFile; } - +using System; using System.Threading.Tasks; using Tango.Web; -using Tango.Web.Authentication; namespace @(model.Namespace) { @@ -19,7 +18,7 @@ namespace @(model.Namespace) /// /// The environment. /// Existing token. - public @(model.Name)(DeploymentSlot environment, WebToken token) : base(environment, "@(model.ControllerName)", token) + public @(model.Name)(DeploymentSlot environment, String token) : base(environment, "@(model.ControllerName)", token) { } @@ -33,6 +32,16 @@ namespace @(model.Namespace) } + /// + /// Initializes a new instance of the class. + /// + /// The service address. + /// Existing token. + public @(model.Name)(String address, String token) : base(address, "@(model.ControllerName)", token) + { + + } + @foreach (var action in model.Actions) {
-- cgit v1.3.1