Exemple #1
0
 /// <summary>
 /// Initializes a new <see cref="WorkflowReader"/>
 /// </summary>
 /// <param name="logger">The service used to perform logging</param>
 /// <param name="schemaValidator">The service used to validate <see cref="WorkflowDefinition"/>s</param>
 /// <param name="jsonSerializer">The service used to serialize and deserialize JSON</param>
 /// <param name="yamlSerializer">The service used to serialize and deserialize YAML</param>
 /// <param name="httpClientFactory">The service used to create <see cref="System.Net.Http.HttpClient"/>s</param>
 public WorkflowReader(ILogger <WorkflowReader> logger, IWorkflowSchemaValidator schemaValidator, IJsonSerializer jsonSerializer, IYamlSerializer yamlSerializer, IHttpClientFactory httpClientFactory)
 {
     this.Logger          = logger;
     this.SchemaValidator = schemaValidator;
     this.JsonSerializer  = jsonSerializer;
     this.YamlSerializer  = yamlSerializer;
     this.HttpClient      = httpClientFactory.CreateClient();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new <see cref="WorkflowReader"/>
 /// </summary>
 /// <param name="logger">The service used to perform logging</param>
 /// <param name="schemaValidator">The service used to validate <see cref="WorkflowDefinition"/>s</param>
 /// <param name="dslValidators">An <see cref="IEnumerable{T}"/> containing the services used to validate Serverless Workflow DSL</param>
 /// <param name="jsonSerializer">The service used to serialize and deserialize JSON</param>
 /// <param name="yamlSerializer">The service used to serialize and deserialize YAML</param>
 /// <param name="httpClientFactory">The service used to create <see cref="System.Net.Http.HttpClient"/>s</param>
 public WorkflowReader(ILogger <WorkflowReader> logger, IWorkflowSchemaValidator schemaValidator, IEnumerable <IValidator <WorkflowDefinition> > dslValidators, IJsonSerializer jsonSerializer, IYamlSerializer yamlSerializer, IHttpClientFactory httpClientFactory)
 {
     this.Logger          = logger;
     this.SchemaValidator = schemaValidator;
     this.DslValidators   = dslValidators;
     this.JsonSerializer  = jsonSerializer;
     this.YamlSerializer  = yamlSerializer;
     this.HttpClient      = httpClientFactory.CreateClient();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new <see cref="WorkflowValidator"/>
 /// </summary>
 /// <param name="logger">The service used to perform logging</param>
 /// <param name="schemaValidator">The service used to validate <see cref="WorkflowDefinition"/>s</param>
 /// <param name="dslValidators">An <see cref="IEnumerable{T}"/> containing the services used to validate Serverless Workflow DSL</param>
 public WorkflowValidator(ILogger <WorkflowValidator> logger, IWorkflowSchemaValidator schemaValidator, IEnumerable <IValidator <WorkflowDefinition> > dslValidators)
 {
     this.Logger          = logger;
     this.SchemaValidator = schemaValidator;
     this.DslValidators   = dslValidators;
 }