Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var session = new Session(new Account
                                          {
                                              Jid = "*****@*****.**",
                                              Password = "******",
                                              Port = 5222,
                                              Server = "talkto.directi.com",
                                              Domain = "directi.com",
                                              Resource = "myresource"
                                          });
            session.Start();

            Console.ReadLine();
        }
 public FeatureNegotiationHandler(Session session)
     : base(session)
 {
     OnAuthenticated = packet => packet;
     OnResourceBinding = packet => packet;
 }
Exemplo n.º 3
0
 protected StanzaHandler(Session session)
 {
     Session = session;
     Stream = session.Stream;
 }
 public AuthenticationPlainPw(Session session)
     : base(session)
 {
     _account = Stream.Properties.Account;
     OnAuthentication = packet => packet;
 }
Exemplo n.º 5
0
 protected IqHandler(Session session)
     : base(session)
 {
 }
Exemplo n.º 6
0
 public Disco(Session session)
     : base(session)
 {
 }
Exemplo n.º 7
0
 public RosterHandler(Session session)
     : base(session)
 {
 }
Exemplo n.º 8
0
 public ResourceBinder(Session session)
     : base(session)
 {
     OnBinding = packet => packet;
 }