Example #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);
 }
Example #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();
 }
Example #5
0
 private void SaveLdapConnection(ILdapServerConnection ldapServerConnection)
 {
     Session[Global.LdapConnection] = ldapServerConnection;
 }
 public SearchService(ILdapServerConnection connection)
 {
     manager = new LdapAccountManager(connection);
 }
Example #7
0
 public LdapAccountManager(ILdapServerConnection ldapConnection)
 {
     this.ldapConnection = ldapConnection;
 }
Example #8
0
 public void SetAccountManager(ILdapServerConnection ldapConnection)
 {
     ldapAccountManager = new LdapAccountManager(ldapConnection);
 }
Example #9
0
 public UIHelper(ILdapServerConnection connection)
 {
     ldapAccountService.SetAccountManager(connection);
 }
Example #10
0
 public UIHelperService(ILdapServerConnection connection)
 {
     helper = new UIHelper(connection);
 }