protected override void Given() { _projectionId = Guid.NewGuid(); _workerId = Guid.NewGuid(); _projectionName = "projection"; _handlerType = "JS"; _query = "from()"; _config = new ProjectionConfig( new OpenGenericPrincipal("user", "a", "b"), 1000, 100000, 2000, 200, true, true, true, true, true, true, 10000, 1); var builder = new SourceDefinitionBuilder(); builder.FromStream("s1"); builder.FromStream("s2"); builder.IncludeEvent("e1"); builder.IncludeEvent("e2"); builder.SetByStream(); builder.SetResultStreamNameOption("result-stream"); _definition = QuerySourcesDefinition.From(builder); }
public void ConfigureSourceProcessingStrategy(SourceDefinitionBuilder builder) { _logger("ConfigureSourceProcessingStrategy(" + builder + ")"); builder.FromCatalogStream("catalog"); builder.AllEvents(); builder.SetByStream(); }
public void ConfigureSourceProcessingStrategy(SourceDefinitionBuilder builder) { Log("ConfigureSourceProcessingStrategy(" + builder + ")"); builder.FromAll(); builder.AllEvents(); builder.SetByStream(); builder.SetIsBiState(true); }
public void ConfigureSourceProcessingStrategy(SourceDefinitionBuilder builder) { _logger("ConfigureSourceProcessingStrategy(" + builder + ")"); builder.FromAll(); builder.AllEvents(); builder.SetByStream(); builder.SetDefinesStateTransform(); }
protected override void Given() { _projectionId = Guid.NewGuid(); var builder = new SourceDefinitionBuilder(); builder.FromStream("s1"); builder.FromStream("s2"); builder.IncludeEvent("e1"); builder.IncludeEvent("e2"); builder.SetByStream(); builder.SetResultStreamNameOption("result-stream"); _definition = ProjectionSourceDefinition.From(builder); }