<commit_before>﻿namespace MonitoringNotifications.ServiceControl.Notifications
{
    using System;
    using NServiceBus;
    using NServiceBus.Persistence;

    #region MessageFailedEndpointConfig 5.0
    public class EndpointConfig : IConfigureThisEndpoint, AsA_Server
    {
        public void Customize(BusConfiguration configuration)
        {
            configuration.UseSerialization<JsonSerializer>();

            configuration.Conventions()
                .DefiningEventsAs(t => typeof(IEvent).IsAssignableFrom(t) || IsServiceControlContract(t));

            configuration.UsePersistence<RavenDBPersistence>();
        }

        private static bool IsServiceControlContract(Type t)
        {
            return t.Namespace != null && t.Namespace.StartsWith("ServiceControl.Contracts");
        }
    }
    #endregion
}<commit_msg>Update EndpointConfig.cs<commit_after>﻿namespace MonitoringNotifications.ServiceControl.Notifications
{
    using System;
    using NServiceBus;
    using NServiceBus.Persistence;


    public class EndpointConfig : IConfigureThisEndpoint, AsA_Server
    {
        public void Customize(BusConfiguration configuration)
        {
    #region MessageFailedEndpointConfig 5.0
            configuration.UseSerialization<JsonSerializer>();

            configuration.Conventions()
                .DefiningEventsAs(t => typeof(IEvent).IsAssignableFrom(t) || IsServiceControlContract(t));

            .....
        }

        private static bool IsServiceControlContract(Type t)
        {
            return t.Namespace != null && t.Namespace.StartsWith("ServiceControl.Contracts");
        }
    }
    #endregion
}
{'fraction_non_alphanumeric': 0.08464328899637243, 'fraction_numerical': 0.0024183796856106408, 'mean_word_length': 2.884976525821596, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3393568', 'n_tokens_mistral': 417, 'n_tokens_neox': 406, 'n_words': 72}