protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { pipelinesBuilder .Event <TestEvent>() .IsPiped() .ThenIsSentToAllAzureSignalRUsers(HubName, HubMethodName); }
protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { pipelinesBuilder .Event <ITestEvent>() .IsPiped() .ThenIsPublishedToGlobalSubscriptions(); }
protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { pipelinesBuilder .Event <TestEvent>() .IsPiped() .ThenIsSentToAzureSignalRGroups(e => new[] { _groupId1 }, HubName, HubMethodName); }
protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { pipelinesBuilder .Event <TestEvent>() .IsPiped() .ThenIsPublishedToGlobalSubscriptions(x => x.WithAzureTopic()); }
protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { var pipelineBuilder = pipelinesBuilder .Event <TestEvent>() .IsPiped(); pipelineBuilder.ThenIsPublishedToGlobalSubscriptions(x => new PublishTransmissionConfiguration(typeof(object))); }
public void SetUp() { _serviceProviderMock = new Mock <IServiceProvider>(MockBehavior.Strict); _pipelinesBuilder = new PipelinesBuilder( _serviceProviderMock.Object ); }
protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { var pipelineBuilder = pipelinesBuilder .Event <TestEvent>() .IsPiped(); var pipeline = pipelineBuilder.Get <IPipeline>(); pipeline.AddModule <TestPipelineModule, TestPipelineModuleConfig>(new TestPipelineModuleConfig()); }
protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { var pipelineConfigurator = pipelinesBuilder .Event <TestEvent>() .IsPiped(); if (_parameters.IsFiltered) { pipelineConfigurator.ThenIsFiltered(testEvent => true); } if (_parameters.IsProjected) { var pipelineConfiguratorWithProjection = pipelineConfigurator.ThenIsProjected( testEvent => new ProjectedTestEvent() ); ContinueConfiguration(pipelineConfiguratorWithProjection); } else { ContinueConfiguration(pipelineConfigurator); } }
protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { }
/// <summary> /// Override this method to configure the pipelines needed for handling the events. /// The resulting configuration may be cached and re-used during the entire lifespan of the context. /// </summary> /// <remarks>The default implementation of this method does nothing.</remarks> /// <param name="pipelinesBuilder">The builder that defines the model for the context being created.</param> protected virtual void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder) { }
public PipelineBehavior(IPipelinesBuilder mediatorBuilder) { _mediatorBuilder = mediatorBuilder; }