public WebSession(string baseUrl, WebSession.AuthenticationMode securityMode, string userName, string password) { this.baseUrl = baseUrl; this.userName = userName; this.password = password; authenticator = WebAuthenticatorFactory.Create(securityMode, baseUrl); }
public static IWebAuthenticator Create(WebSession.AuthenticationMode mode, string baseUrl) { if (mode == WebSession.AuthenticationMode.WebAPI) { return(new WebApiAuthenticator(baseUrl)); } return(null); }