Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectionsService"/> class.
 /// </summary>
 /// <param name="projections">The <see cref="IProjections"/> to use to perform operations on Projections.</param>
 /// <param name="exceptionToFailureConverter">The <see cref="IExceptionToFailureConverter"/> to use to convert exceptions to failures.</param>
 /// <param name="definitionConverter">The <see cref="IConvertProjectionDefinitions"/> to use to convert projection definition fields.</param>
 /// <param name="streamProcessorStatusConverter">The <see cref="IConvertStreamProcessorStatuses"/> to use to convert stream processor states.</param>
 /// <param name="logger">The logger to use for logging.</param>
 public ProjectionsService(
     IProjections projections,
     IExceptionToFailureConverter exceptionToFailureConverter,
     IConvertProjectionDefinitions definitionConverter,
     IConvertStreamProcessorStatuses streamProcessorStatusConverter,
     ILogger logger)
 {
     _projections = projections;
     _exceptionToFailureConverter    = exceptionToFailureConverter;
     _definitionConverter            = definitionConverter;
     _streamProcessorStatusConverter = streamProcessorStatusConverter;
     _logger = logger;
 }
Exemplo n.º 2
0
 public ManagementClient(ICanCreateClients clients, IConvertProjectionDefinitions definitionConverter, IConvertStreamProcessorStatus statusConverter)
 {
     _clients             = clients;
     _definitionConverter = definitionConverter;
     _statusConverter     = statusConverter;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectionsProtocol"/> class.
 /// </summary>
 /// <param name="converter">The converter to use to convert projection definition fields.</param>
 /// <param name="occurredFormatValidator">The <see cref="IValidateOccurredFormat"/>.</param>
 public ProjectionsProtocol(IConvertProjectionDefinitions converter, IValidateOccurredFormat occurredFormatValidator)
 {
     _converter = converter;
     _occurredFormatValidator = occurredFormatValidator;
 }