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