yangxiaodong преди 7 години
родител
ревизия
7e84a15370
променени са 2 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. +5
    -4
      src/Cap.Consistency/Abstractions/ConsumerContext.cs
  2. +2
    -2
      src/Cap.Consistency/Abstractions/ConsumerExecutorDescriptor.cs

+ 5
- 4
src/Cap.Consistency/Abstractions/ConsumerContext.cs Целия файл

@@ -2,19 +2,20 @@
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Cap.Consistency.Infrastructure;

namespace Cap.Consistency.Abstractions
{
public class ConsumerContext
{
public ConsumerContext(ConsumerExecutorDescriptor descriptor) {
public ConsumerContext(ConsumerExecutorDescriptor descriptor, DeliverMessage message) {

ConsumerDescriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor));
DeliverMessage = message ?? throw new ArgumentNullException(nameof(message));
}

public ConsumerExecutorDescriptor ConsumerDescriptor { get; set; }


public DeliverMessage DeliverMessage { get; set; }
}
}

+ 2
- 2
src/Cap.Consistency/Abstractions/ConsumerExecutorDescriptor.cs Целия файл

@@ -9,10 +9,10 @@ namespace Cap.Consistency.Abstractions
{
public MethodInfo MethodInfo { get; set; }

public Type ImplType { get; set; }
public TypeInfo ImplTypeInfo { get; set; }

public TopicInfo Topic { get; set; }

public int GroupId { get; set; }
public string GroupId { get; set; }
}
}

Зареждане…
Отказ
Запис