Example #1
0
        public async Task InsertAsync(L7Conversation l7Conversation)
        {
            await this._repositoryWriterAsync.InsertAsync(L7ConversationMapper.Map(l7Conversation)).ConfigureAwait(false);

            // TODO async ShardL7ConversationPdus
            await Task.WhenAll(L7ConversationPdusSharder.ShardL7ConversationPdus(l7Conversation)
                               .Select(this._pduShardRepositoryWriterAsync.InsertAsync)).ConfigureAwait(false);

            await this._unitOfWork.SaveChangesAsync().ConfigureAwait(false);
        }
Example #2
0
        public async Task InsertAsync(L7Conversation l7Conversation)
        {
            await this._repositoryWriterAsync.InsertAsync(L7ConversationMapper.Map(l7Conversation)).ConfigureAwait(false);

            await this._unitOfWork.SaveChangesAsync().ConfigureAwait(false);
        }