private static void Connect() { if (_settings.Hostname == null) { Console.Write("Enter Hostname: "); _settings.Hostname = Console.ReadLine(); } if (_settings.Username == null) { Console.Write("Enter Username: "******"Enter Password: "******"Connection established!"); } }
public ReceivedEvents() { s = new Sync("token", "privatekey"); s.HandlerMessages += S_HandlerMessages; s.HandlerLogs += S_HandlerLogs; s.Connect(); }