Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     connection   = (ILdapServerConnection)Session[Global.LdapConnection];
     helper       = new UIHelper(connection);
     username     = Request.QueryString["user"];
     ltrUser.Text = helper.GetUserFullName(username);
 }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ldapConnection = (ILdapServerConnection)Session[Global.LdapConnection];
            accountService = new LdapAccountService();
            accountService.SetAccountManager(ldapConnection);

            acknowledgementDtoService = new AcknowledgementDtoService();
            tagDtoService             = new TagDtoService();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            var username = HttpContext.Current.User.Identity.Name;

            connection = (ILdapServerConnection)Session[Global.LdapConnection];

            if (connection == null)
            {
                SignOut();
            }
            else
            {
                IAccountService accountService = new LdapAccountService();
                accountService.SetAccountManager(connection);
            }
        }
 public LoginService(ILdapServerConnection ldapConnection, IAccountService ldapAccountService)
 {
     this.ldapConnection     = ldapConnection;
     this.ldapAccountService = ldapAccountService;
     response = new LoginResponse();
 }
Esempio n. 5
0
 private void SaveLdapConnection(ILdapServerConnection ldapServerConnection)
 {
     Session[Global.LdapConnection] = ldapServerConnection;
 }
 public SearchService(ILdapServerConnection connection)
 {
     manager = new LdapAccountManager(connection);
 }
Esempio n. 7
0
 public LdapAccountManager(ILdapServerConnection ldapConnection)
 {
     this.ldapConnection = ldapConnection;
 }
Esempio n. 8
0
 public void SetAccountManager(ILdapServerConnection ldapConnection)
 {
     ldapAccountManager = new LdapAccountManager(ldapConnection);
 }
Esempio n. 9
0
 public UIHelper(ILdapServerConnection connection)
 {
     ldapAccountService.SetAccountManager(connection);
 }
Esempio n. 10
0
 public UIHelperService(ILdapServerConnection connection)
 {
     helper = new UIHelper(connection);
 }