<commit_before>﻿using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using NServiceBus;

namespace NES.Sample.Web
{
    public class MvcApplication : HttpApplication
    {
        public static IBus Bus { get; private set; }

        protected void Application_Start()
        {
            RegisterBus();
            RegisterAllAreas();
            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }

        private void RegisterBus()
        {
            Bus = Configure.WithWeb()
                .Log4Net()
                .DefaultBuilder()
                .XmlSerializer()
                .MsmqTransport()
                .IsTransactional(false)
                .PurgeOnStartup(false)
                .UnicastBus()
                .ImpersonateSender(false)
                .CreateBus()
                .Start();
        }

        private static void RegisterAllAreas()
        {
            AreaRegistration.RegisterAllAreas();
        }

        private static void RegisterGlobalFilters(GlobalFilterCollection filters)<commit_msg>updated sample web endpoint with SendOnly config<commit_after>﻿using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using NServiceBus;

namespace NES.Sample.Web
{
    public class MvcApplication : HttpApplication
    {
        public static IBus Bus { get; private set; }

        protected void Application_Start()
        {
            RegisterBus();
            RegisterAllAreas();
            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }

        private void RegisterBus()
        {
            Bus = Configure.WithWeb()
                .Log4Net()
                .DefaultBuilder()
                .XmlSerializer()
                .MsmqTransport()
                .IsTransactional(false)
                .PurgeOnStartup(false)
                .UnicastBus()
                .ImpersonateSender(false)
                .SendOnly();
        }

        private static void RegisterAllAreas()
        {
            AreaRegistration.RegisterAllAreas();
        }

        private static void RegisterGlobalFilters(GlobalFilterCollection filters)
{'fraction_non_alphanumeric': 0.07893549842129004, 'fraction_numerical': 0.0009021199819576004, 'mean_word_length': 1.6884848484848485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5433279', 'n_tokens_mistral': 556, 'n_tokens_neox': 537, 'n_words': 110}