public object Clone()
        {
            UriApplicationNameResolver clone = new UriApplicationNameResolver(BamConf);

            clone.CopyProperties(this);
            clone.CopyEventHandlers(this);
            return(clone);
        }
Exemplo n.º 2
0
        public Responder(BamConf conf)
        {
            BamConf = conf;
            Logger  = Log.Default;
            ApplicationNameResolver = new UriApplicationNameResolver(conf);

            _contentTypes = new Dictionary <string, string>
            {
                { ".json", "application/json" },
                { ".js", "application/javascript" },
                { ".css", "text/css" },
                { ".jpg", "image/jpg" },
                { ".gif", "image/gif" },
                { ".png", "image/png" },
                { ".html", "text/html" }
            };
            _respondToPrefixes = new List <string>();
            _ignorePrefixes    = new List <string>();

            AddRespondToPrefix(ResponderSignificantName);
        }