public IRuntimeDatabaseConfiguration ElevatedRuntimeDatabaseConfiguration() { return(new RuntimeDatabaseConfiguration(PlatformDatabaseProvider) { ConnectionString = ConnectionStringUtils.Make(ElevatedAuthenticationCredential, ElevatedUserAuthenticationMode, Server, Catalog, SessionAdvancedSettings), }); }
public override IRuntimeDatabaseConfiguration RuntimeDatabaseConfiguration() { return(new RuntimeDatabaseConfiguration(PlatformDatabaseProvider) { ConnectionString = ConnectionStringUtils.Make(SessionAuthenticationCredential, AuthenticationMode, Server, Catalog, SessionAdvancedSettings) }); }
public IRuntimeDatabaseConfiguration ElevatedRuntimeDatabaseConfiguration() { return(new RuntimeDatabaseConfiguration(DatabaseProvider) { ConnectionString = ConnectionStringUtils.Make(ElevatedAuthenticationCredential, ElevatedUserAuthenticationMode, Server, Catalog), DatabaseUnicodeSupport = Unicode, }); }
public override IRuntimeDatabaseConfiguration RuntimeDatabaseConfiguration(UserType user) { return(new RuntimeDatabaseConfiguration(DatabaseProvider) { ConnectionString = ConnectionStringUtils.Make( user == UserType.Admin ? AdminAuthenticationCredential : RuntimeAuthenticationCredential, AuthenticationMode, Server, Catalog, RuntimeAdvancedSettings ), DatabaseUnicodeSupport = Unicode }); }
public override IRuntimeDatabaseConfiguration RuntimeDatabaseConfiguration(Source source, User userType) { NetworkCredential userCredentials; switch (userType) { case User.Admin: userCredentials = AdminAuthenticationCredential; break; case User.Runtime: userCredentials = RuntimeAuthenticationCredential; break; case User.Log: userCredentials = LogAuthenticationCredential; break; default: throw new NotSupportedException(@"Unexpected user type " + userType); } string adv = ""; switch (source) { case Source.Application: adv = RuntimeAdvancedSettings; break; case Source.Services: adv = ServicesAdvancedSettings; break; } return(new RuntimeDatabaseConfiguration(PlatformDatabaseProvider) { ConnectionString = ConnectionStringUtils.Make(userCredentials, AuthenticationMode, Server, Catalog, adv), DatabaseUnicodeSupport = Unicode }); }