Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

丁松杰 / Pole

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Pole
  • src
  • Pole.ReliableMessage.Masstransit
  • DefaultReliableEventHandlerContext.cs
Find file
BlameHistoryPermalink
  • 丁松杰's avatar
    添加 可靠消息 组件 · eb350c31
    丁松杰 committed 5 years ago
    eb350c31
DefaultReliableEventHandlerContext.cs 666 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
using Pole.ReliableMessage.Abstraction;
using MassTransit;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Pole.ReliableMessage.Masstransit
{
    public class DefaultReliableEventHandlerContext<TEvent> : IReliableEventHandlerContext<TEvent>
        where TEvent : class
    {
        private readonly ConsumeContext<TEvent> _executeContext;
        public DefaultReliableEventHandlerContext(ConsumeContext<TEvent> executeContext)
        {
            _executeContext = executeContext;
            this.Event = executeContext.Message;
        }
        public TEvent Event { get; private set; }
    }
}