public ActionResult Add(CredentialsConfig credentialsConfig)
        {
            if (ModelState.IsValid)
            {
                SocialAllianceConfig.CreateOrUpdateCredentials(credentialsConfig);
            }

            var config = SocialAllianceConfig.Read();
            var credentials = config.Authorization.Credentials;

            return PartialView("_CredentialsListPartial", credentials);
        }
Esempio n. 2
0
 internal static ConnectionResultSet TestConnection(CredentialsConfig creds, string database = null)
 {
     return(TestConnection(new sqlservers(creds), database));
 }
Esempio n. 3
0
 internal static DbConnection connect(CredentialsConfig creds, string database = null)
 {
     return(connect(new sqlservers(creds), database));
 }
 public static string connectionStringBuilder(CredentialsConfig creds, string database = null) =>
 connectionStringBuilder(creds.host, creds.username, creds.password, database, creds.port);
Esempio n. 5
0
 public sqlservers(CredentialsConfig creds) : this(creds.host, creds.port, creds.username, creds.password)
 {
 }