示例#1
0
 public AuthExtensionProcessor(IConnection connection)
 {
     _processor   = connection;
     MechanismMap = new AuthMechanismMap();
     MechanismMap.Add(new CramMd5Mechanism());
     MechanismMap.Add(new PlainMechanism());
     MechanismMap.Add(new LoginMechanism());
     MechanismMap.Add(new AnonymousMechanism());
     connection.VerbMap.SetVerbProcessor("AUTH", new AuthVerb(this));
 }
 public AuthExtensionProcessor(IConnection connection)
 {
     _processor = connection;
     MechanismMap = new AuthMechanismMap();
     MechanismMap.Add(new CramMd5Mechanism());
     MechanismMap.Add(new PlainMechanism());
     MechanismMap.Add(new LoginMechanism());
     MechanismMap.Add(new AnonymousMechanism());
     connection.VerbMap.SetVerbProcessor("AUTH", new AuthVerb(this));
 }