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"); }
public PuttyHost(IPuttyConnectable iPuttyConnectable) : base(iPuttyConnectable.ProtocolServerBase, false) { _protocolPuttyBase = iPuttyConnectable; InitializeComponent(); }