private Site GetAuthorisedSite()
        {
            var authenticationEndpoint = _binderEcosystem.AuthenticationEndpoint;
            AuthorisedSession = authenticationEndpoint.CreateSession(this.username, this.password);
            if (AuthorisedSession == null)
            {
                throw new ApplicationException("Unable to login");
            }

            var region = new Region(_binderEcosystem, "au", AuthorisedSession);
            return region.GetSite(this.Subdomain);
        }
Exemple #2
0
 public Site(Region region, string subdomain, BinderSession session)
 {
     _region = region;
     _subdomain = subdomain;
     _session = session;
 }