private void PersistMessage(Message message, IRepoTransaction repoTransaction) { DatabaseEngineConstant databaseEngine = DatabaseOption.DatabaseEngine; IMessageRepository messageRepo = MessageRepoFactory.GetMessageRepository(databaseEngine, DatabaseOption.DbConnectionString, repoTransaction); messageRepo.InsertMessage(message); WriteInfoLog("Message persisting was successful."); }
private IMessageRepository GetMessageRepository() { return(MessageRepoFactory.GetMessageRepository(DatabaseOption.DatabaseEngine, DatabaseOption.DbConnectionString)); }