Beispiel #1
0
 public static void LoginSiteManager(XjtuSiteManager m)
 {
     if (m == null) throw new ArgumentNullException(nameof(m));
     var a = m.RequireService<AccountManager>();
     AuthenticateCore(a);
     Trace.Assert(a.IsLoggedIn);
 }
Beispiel #2
0
 internal XjtuSubManager(XjtuSiteManager site)
 {
     if (site == null)
     {
         throw new ArgumentNullException(nameof(site));
     }
     Site   = site;
     Client = site.GetService <PortableWebClient>();
 }
Beispiel #3
0
 internal CardManager(XjtuSiteManager site) : base(site)
 {
     this.Invalidate();
 }
Beispiel #4
0
 internal AccountManager(XjtuSiteManager site) : base(site)
 {
     this.Invalidate();
 }
Beispiel #5
0
 internal AccountManager(XjtuSiteManager site) : base(site)
 {
     this.Invalidate();
 }
Beispiel #6
0
 public static void LogoutSiteManager(XjtuSiteManager m)
 {
     if (m == null) throw new ArgumentNullException(nameof(m));
     var a = m.RequireService<AccountManager>();
     a.LogoutAsync().Wait();
 }
Beispiel #7
0
 public static XjtuSiteManager CreateXjtuSiteManager()
 {
     var newInst = new XjtuSiteManager();
     newInst.RegisterService(new ManualVerificationProvider());
     return newInst;
 }
Beispiel #8
0
 internal XjtuSubManager(XjtuSiteManager site)
 {
     if (site == null) throw new ArgumentNullException(nameof(site));
     Site = site;
     Client = site.GetService<PortableWebClient>();
 }
Beispiel #9
0
 internal CardManager(XjtuSiteManager site) : base(site)
 {
     this.Invalidate();
 }