Ejemplo n.º 1
0
 public static string GetSessionName(this IPuttyConnectable item)
 {
     if (item is ProtocolServerBase protocolServer)
     {
         return($"{SystemConfig.AppName}_{protocolServer.Protocol}_{protocolServer.Id}");
     }
     throw new NotSupportedException("you should not access here! something goes wrong");
 }
Ejemplo n.º 2
0
 public PuttyHost(IPuttyConnectable iPuttyConnectable) : base(iPuttyConnectable.ProtocolServerBase, false)
 {
     _protocolPuttyBase = iPuttyConnectable;
     InitializeComponent();
 }