AuctionSniper.Console.AuctionSniperConsole.Connection C# (CSharp) Метод

Connection() приватный Метод

private Connection ( string inHostName, AuctionCredencial inCredencial ) : jabber.client.JabberClient
inHostName string
inCredencial AuctionCredencial
Результат jabber.client.JabberClient
        private JabberClient Connection(string inHostName, AuctionCredencial inCredencial)
        {
            var connection = new JabberClient();

            connection.AutoLogin = true;
            connection.AutoStartTLS = false;
            connection.User = inCredencial.Id.User;
            connection.Server = inCredencial.Id.Server;
            connection.Resource = inCredencial.Id.Resource;
            connection.Password = inCredencial.Password;
            connection.Port = 5222;
            connection.NetworkHost = inHostName;

            return connection;
        }