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.");
        }
Exemple #2
0
 private IMessageRepository GetMessageRepository()
 {
     return(MessageRepoFactory.GetMessageRepository(DatabaseOption.DatabaseEngine,
                                                    DatabaseOption.DbConnectionString));
 }