public KafkaService(IServiceProvider serviceProvider, IMessageLogsRepository messageLogsRepository) { _serviceProvider = serviceProvider; _messageLogsRepository = messageLogsRepository; Initialize("localhost:9092"); new Thread(() => StartConsumeMessages()).Start(); }
public InteropCCSimulationApiHandlerInternal() { using (IKernel kernel = new StandardKernel(new WCFNinject())) { _messageLogsRepository = kernel.Get <IMessageLogsRepository>(); _soapFaultRepository = kernel.Get <ISoapFaultRepository>(); } }
// Опис: конструктор на класата InteropCCHandlerInternal // Влезни параметри: / public InteropCCHandlerExternal() { _soapFaultRepo = Global.NewKernel.Get <ISoapFaultRepository>(); _logger = Global.NewKernel.Get <ILogger>(); _mimMsgHelper = Global.NewKernel.Get <IMimMsgHelper>(); _requestHelper = Global.NewKernel.Get <IRequestHelper>(); _soapRequestHelper = Global.NewKernel.Get <ISoapRequestHelper>(); _validXmlMsgHelper = Global.NewKernel.Get <IValidXmlMsgHelper>(); _messageLogsRepository = Global.NewKernel.Get <IMessageLogsRepository>(); }
// Опис: конструктор на класата InteropCCHandlerInternal // Влезни параметри: / public InteropCCHandlerInternal() { using (IKernel kernel = new StandardKernel(new WCFNinject())) { _soapFaultRepo = kernel.Get <ISoapFaultRepository>(); _logger = kernel.Get <ILogger>(); _mimMsgHelper = kernel.Get <IMimMsgHelper>(); _requestHelper = kernel.Get <IRequestHelper>(); _soapRequestHelper = kernel.Get <ISoapRequestHelper>(); _validXmlMsgHelper = kernel.Get <IValidXmlMsgHelper>(); _messageLogsRepository = kernel.Get <IMessageLogsRepository>(); } }
// Опис: Конструктор на MessageLogController модулот // Влезни параметри: модел IMessageLogsRepository public MessageLogController(IMessageLogsRepository messageLogsRepository) { _messageLogsRepository = messageLogsRepository; }