コード例 #1
0
 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);
                }
            }
コード例 #9
0
 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)
 {
 }
コード例 #11
0
 public PipelineBehavior(IPipelinesBuilder mediatorBuilder)
 {
     _mediatorBuilder = mediatorBuilder;
 }