public static void SharedConfig(this EndpointConfiguration endpointConfiguration)
    {
        #region AddMessageBodyWriter

        endpointConfiguration.AddMessageBodyWriter();

        #endregion

        endpointConfiguration.UsePersistence <LearningPersistence>();
        endpointConfiguration.UseTransport <LearningTransport>();
    }
    public static void SharedConfig(this EndpointConfiguration endpointConfiguration)
    {
        #region AddMessageBodyWriter

        endpointConfiguration.AddMessageBodyWriter();

        #endregion

        endpointConfiguration.UsePersistence <InMemoryPersistence>();
        endpointConfiguration.EnableInstallers();
        endpointConfiguration.SendFailedMessagesTo("error");
    }