protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder)
 {
     pipelinesBuilder
     .Event <TestEvent>()
     .IsPiped()
     .ThenIsSentToAllAzureSignalRUsers(HubName, HubMethodName);
 }
예제 #2
0
 protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder)
 {
     pipelinesBuilder
     .Event <ITestEvent>()
     .IsPiped()
     .ThenIsPublishedToGlobalSubscriptions();
 }
예제 #3
0
 protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder)
 {
     pipelinesBuilder
     .Event <TestEvent>()
     .IsPiped()
     .ThenIsSentToAzureSignalRGroups(e => new[] { _groupId1 }, HubName, HubMethodName);
 }
예제 #4
0
 protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder)
 {
     pipelinesBuilder
     .Event <TestEvent>()
     .IsPiped()
     .ThenIsPublishedToGlobalSubscriptions(x => x.WithAzureTopic());
 }
예제 #5
0
            protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder)
            {
                var pipelineBuilder = pipelinesBuilder
                                      .Event <TestEvent>()
                                      .IsPiped();

                pipelineBuilder.ThenIsPublishedToGlobalSubscriptions(x => new PublishTransmissionConfiguration(typeof(object)));
            }
예제 #6
0
        public void SetUp()
        {
            _serviceProviderMock = new Mock <IServiceProvider>(MockBehavior.Strict);

            _pipelinesBuilder = new PipelinesBuilder(
                _serviceProviderMock.Object
                );
        }
예제 #7
0
            protected override void OnBuildingPipelines(IPipelinesBuilder pipelinesBuilder)
            {
                var pipelineBuilder = pipelinesBuilder
                                      .Event <TestEvent>()
                                      .IsPiped();

                var pipeline = pipelineBuilder.Get <IPipeline>();

                pipeline.AddModule <TestPipelineModule, TestPipelineModuleConfig>(new TestPipelineModuleConfig());
            }
예제 #8
0
            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)
 {
 }
예제 #10
0
 /// <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;
 }