示例#1
0
    void CustomTopicsMappingsTypeToTopic(EndpointConfiguration endpointConfiguration)
    {
        #region CustomTopicsMappingsTypeToTopic

        var transport = new SqsTransport();

        transport.MapEvent <SubscribedEvent>("topic-used-by-the-publisher");

        endpointConfiguration.UseTransport(transport);

        #endregion
    }
示例#2
0
    void CustomTopicsMappingsTypeToTopicForTopology(EndpointConfiguration endpointConfiguration)
    {
        #region CustomTopicsMappingsTypeToTopicForTopology

        var transport = new SqsTransport();

        transport.MapEvent <IOrderAccepted>("namespace-OrderAccepted");

        endpointConfiguration.UseTransport(transport);

        #endregion
    }
示例#3
0
    void CustomTopicsMappingsTypeToType(EndpointConfiguration endpointConfiguration)
    {
        #region CustomTopicsMappingsTypeToType

        var transport = new SqsTransport();

        transport.MapEvent <SubscribedEvent, PublishedEvent>();

        endpointConfiguration.UseTransport(transport);

        #endregion
    }