Exemplo n.º 1
0
 public PublishSampleQuesRecycService(IDistributedEventBusService distributedEventBusService)
 {
     _distributedEventBusService = distributedEventBusService;
 }
Exemplo n.º 2
0
 public PublishSampleActivityRecycService(IDistributedEventBusService distributedEventBusService)
 {
     _distributedEventBusService = distributedEventBusService;
 }
Exemplo n.º 3
0
 /// <summary>
 ///  优惠券 定时 过期
 /// </summary>
 /// <param name="distributedEventBusService"></param>
 /// <param name="record"></param>
 public static void PublishSampleCouponRecycling(this IDistributedEventBusService distributedEventBusService, string couponMainId, DateTime startTime, DateTime endTime)
 {
     distributedEventBusService.PublishRequest(SampleCouponRecycling,
                                               CouponTimingEventArgs.CreateTimingEventArgs(couponMainId, startTime, endTime));
 }
Exemplo n.º 4
0
 /// <summary>
 ///  活动 定时 开启 过期
 /// </summary>
 /// <param name="distributedEventBusService"></param>
 /// <param name="record"></param>
 public static void PublishSampleActivityRecycling(this IDistributedEventBusService distributedEventBusService, string activityId, DateTime startTime, DateTime endTime, int state)
 {
     distributedEventBusService.PublishRequest(SampleActivityRecycling,
                                               ActivityTimingEventArgs.CreateTimingEventArgs(activityId, startTime, endTime, state));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 发布问卷 定时抽奖
 /// </summary>
 /// <param name="distributedEventBusService"></param>
 /// <param name="record"></param>
 public static void PublishSampleQuesRecycling(this IDistributedEventBusService distributedEventBusService, string quesAireMainId, int quesAireType, DateTime startTime, DateTime endTime)
 {
     distributedEventBusService.PublishRequest(SampleQuesRecycling,
                                               QuesTimingEventArgs.CreateTimingEventArgs(quesAireMainId, quesAireType, endTime, startTime));
 }