예제 #1
0
 /// <summary>
 /// 初始化
 /// </summary>
 public ChatHelper(WxHelper wxHelper, ICrmEvaMstrRepository crmEvaMstrRepository,
                   ISysUsrMstrRepository sysUsrMstrRepository,
                   ISysUsrWctRepository sysUsrWctRepository,
                   ICrmBehaviorRecordRepository crmBehaviorRecordRepository,
                   IConfiguration configuration)
 {
     _wxHelper                    = wxHelper;
     _crmEvaMstrRepository        = crmEvaMstrRepository;
     _sysUsrMstrRepository        = sysUsrMstrRepository;
     _sysUsrWctRepository         = sysUsrWctRepository;
     _crmBehaviorRecordRepository = crmBehaviorRecordRepository;
     _configuration               = configuration;
 }
예제 #2
0
 /// <summary>
 /// 初始化控制器
 /// <param name="crmEvaMstrService">服务</param>
 /// <param name="iCrmEvaMstrRepository">仓储</param>
 /// </summary>
 public CrmEvaMstrController(ICrmEvaMstrService crmEvaMstrService, ICrmEvaMstrRepository iCrmEvaMstrRepository)
 {
     _crmEvaMstrService    = crmEvaMstrService;
     _crmEvaMstrRepository = iCrmEvaMstrRepository;
 }
예제 #3
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <param name="chatHelper">聊天helper</param>
 /// <param name="crmEvaMstrRepository">消息仓储</param>
 public SignalRHub(ChatHelper chatHelper,
                   ICrmEvaMstrRepository crmEvaMstrRepository)
 {
     _chatHelper           = chatHelper;
     _crmEvaMstrRepository = crmEvaMstrRepository;
 }
예제 #4
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public CrmEvaMstrService(ICrmEvaMstrRepository crmEvaMstrRepository)
 {
     _crmEvaMstrRepository = crmEvaMstrRepository;
 }