aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/ProtoProperty.cs
blob: 73debac37352b8752e2ac5cc359c57ed44243565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.CodeGeneration
{
    public class ProtoProperty : Property
    {
        public bool Repeated { get; set; }

        public String Description { get; set; }

        public ProtoProperty()
        {

        }

        public ProtoProperty(String name, String type) : this()
        {
            Name = name;
            Type = type;
        }

        public ProtoProperty(String name, String type, String description) : this(name, type)
        {
            Description = description;
        }
    }
}
w"> { /// <summary> /// Gets a value indicating whether this client requires authentication. /// </summary> public bool RequiresAuthentication { get; } /// <summary> /// Gets or sets the machine serial number. /// </summary> public string SerialNumber { get; set; } /// <summary> /// Gets the emulator. /// </summary> public MachineEmulator Emulator { get; private set; } /// <summary> /// Initializes a new instance of the <see cref="EmulatorExternalBridge"/> class. /// </summary> public EmulatorExternalBridge() { EnableDiagnostics = true; EnableEmbeddedDebugging = true; EnableEventsNotification = true; String address = new string(Guid.NewGuid().ToString().Replace("-", "").TakeLast(4).ToArray()); Adapter = new MemoryTransportAdapter(address); Emulator = new MachineEmulator(new BasicTransporter(new MemoryTransportAdapter(address))); } /// <summary> /// Connects the transport component. /// </summary> /// <returns></returns> public override Task Connect() { return Task.WhenAll( Emulator.Start(), base.Connect()); } /// <summary> /// Disconnects the machine operator and the underlying transporter. /// </summary> /// <returns></returns> public override Task Disconnect() { return Task.WhenAll( base.Disconnect(), Emulator.Stop()); } /// <summary> /// Gets the database machine associated with this client. /// </summary> public Machine Machine { get; private set; } /// <summary> /// Sets the database machine. /// </summary> /// <param name="machine">The machine.</param> public void SetMachine(Machine machine) { Machine = machine; } } }