Commit c364e476 authored by yangxiaodong's avatar yangxiaodong

refactor

parent 87b26ae9
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment