yangxiaodong 7 лет назад
Родитель
Сommit
c364e47674
1 измененных файлов: 5 добавлений и 1 удалений
  1. +5
    -1
      src/Cap.Consistency/Store/ConsistencyMessageManager.cs

+ 5
- 1
src/Cap.Consistency/Store/ConsistencyMessageManager.cs Просмотреть файл

@@ -1,6 +1,7 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Cap.Consistency.Infrastructure;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
@@ -11,7 +12,7 @@ namespace Cap.Consistency
/// Provides the APIs for managing message in a persistence store.
/// </summary>
/// <typeparam name="TMessage">The type encapsulating a message.</typeparam>
public class ConsistencyMessageManager<TMessage> : IDisposable where TMessage : class
public class ConsistencyMessageManager<TMessage> : IDisposable where TMessage : ConsistencyMessage
{
private bool _disposed;
private readonly HttpContext _context;
@@ -64,6 +65,9 @@ namespace Cap.Consistency
ThrowIfDisposed();
//todo: validation message fileds is correct




return Store.CreateAsync(message, CancellationToken);
}



Загрузка…
Отмена
Сохранить