Exemplo n.º 1
0
        /// <summary>
        /// Add Gasconade UI responders to this configuration, and register log messages from the calling assembly
        /// </summary>
        public static void EnableGasconadeUi(this HttpConfiguration config)
        {
            var callerAssm = Assembly.GetCallingAssembly();

            GasconadeUi.Register(config);
            GasconadeUi.AddAssembly(callerAssm);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add Gasconade UI responders to this configuration, and register log messages from the calling assembly
        /// </summary>
        public static void EnableGasconadeUi(this HttpConfiguration config, Action <GasconadeConfiguratorProxy> configCall)
        {
            var callerAssm = Assembly.GetCallingAssembly();

            GasconadeUi.Register(config);
            GasconadeUi.AddAssembly(callerAssm);

            configCall(new GasconadeConfiguratorProxy());
        }
Exemplo n.º 3
0
 /// <summary>
 /// Include a link back to Swagger (or another URL) in Gasconade
 /// </summary>
 public void AddSwaggerLink(string link = null) => GasconadeUi.AddSwaggerLink(link);
Exemplo n.º 4
0
 /// <summary>
 /// Add another assembly to be scanned for log messages.
 /// This can be used like `.AddAssembly(typeof(MyMessageClass).Assembly)`
 /// </summary>
 public void AddAssembly(Assembly assembly) => GasconadeUi.AddAssembly(assembly);