示例#1
0
 public TableWriterForSerializer(ITableReaderWriter <T>
                                 internalReaderWriter,
                                 IDtoConverter <TDto, T> converter,
                                 IDtoSerializer <TDto> serializer)
 {
     this.internalReaderWriter = internalReaderWriter;
     this.converter            = converter;
     this.serializer           = serializer;
     this.isLoaded             = false;
 }
 public TicketController(IAppContext context, ITicketTypeManager typeMan, ITicketLogger tickLog, ICommentManager comManage, ITicketManager tikMan, IUserManager userMan, IDtoConverter dtoConver, IHtmlValidator htmlValid)
 {
     db             = context;
     typeManager    = typeMan;
     ticketLogger   = tickLog;
     commentManager = comManage;
     ticketManager  = tikMan;
     userManager    = userMan;
     dtoConverter   = dtoConver;
     htmlValidator  = htmlValid;
 }
示例#3
0
        public TableListener(ILogger logger, string adapter, string channel, string topic, int phase, IJsonSerializer serializer)
        {
            _logger = logger;

            _serializer       = serializer;
            _messageConverter = new DtoConverter <TDto>(_serializer, _logger);

            _adapter = adapter;
            _channel = channel;
            _phase   = phase;
            _topic   = topic;
        }
示例#4
0
 public PowerDataAccess(IPowerService powerService, IDtoConverter dtoConverter)
 {
     _powerService = powerService;
     _dtoConverter = dtoConverter;
 }
示例#5
0
 public UploadController(IUploadService service, IDtoConverter converter, ILogger <UploadController> logger)
 {
     _service   = service ?? throw new ArgumentNullException(nameof(service));
     _converter = converter ?? throw new ArgumentNullException(nameof(converter));
     _logger    = logger;
 }