/// <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); }
/// <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()); }
/// <summary> /// Include a link back to Swagger (or another URL) in Gasconade /// </summary> public void AddSwaggerLink(string link = null) => GasconadeUi.AddSwaggerLink(link);
/// <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);