aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Models/SessionVariables.cs
blob: 1e54bbb9d0a7195fdbca79f63353ca380efe4a21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Tango.MachineService.Models
{
    public class SessionVariables
    {
        public static String CurrentUserGuid => "CurrentUserGuid";
    }
}
goWebClientv2CodeFile; } using System; using System.Threading.Tasks; using Tango.Web; namespace @(model.Namespace) { /// <summary> /// Represents a machine service @(model.ControllerName) web client. /// </summary> /// <seealso cref="Tango.Web.TangoWebClient" /> public abstract class @(model.Name) : TangoWebClientV2<@(model.LoginRequest), @(model.LoginResponse)> { /// <summary> /// Initializes a new instance of the <see cref="@(model.Name)"/> class. /// </summary> /// <param name="address">The service address.</param> /// <param name="token">Existing token.</param> public @(model.Name)(String address, String token) : base(address, "@(model.ControllerName)", token) { } /// <summary> /// Initializes a new instance of the <see cref="@(model.Name)"/> class. /// </summary> /// <param name="address">The service address.</param> public @(model.Name)(String address) : this(address, null) { } /// <summary> /// Initializes a new instance of the <see cref="@(model.Name)"/> class. /// </summary> /// <param name="cloned">Other instance.</param> public @(model.Name)(@(model.Name) cloned) : base(cloned) { } @foreach (var action in model.Actions) { <div> /// <summary> /// Executes the @(action.Name) action and returns @(action.Response). /// </summary> /// <returns></returns> public Task<@(action.Response)> @(action.Name)(@(action.Request) request) { return Post<@(action.Request), @(action.Response)>("@(action.Name)", request); } </div> } } }