This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ConventionHelper | |
{ | |
public static string PluralUnderscore(string name) | |
{ | |
return Underscore(Inflector.Net.Inflector.Pluralize(name)); | |
} | |
public static string Underscore(string name) | |
{ | |
return Regex.Replace(name, "([a-z])([A-Z])", "$1_$2").ToLowerInvariant().Trim(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ServiceBusExtensions | |
{ | |
public static bool HasSubscribersFor<T>(this IServiceBus serviceBus, T message) | |
{ | |
IEnumerable<Action<object>> enumerable = serviceBus.OutboundPipeline.Enumerate(message); | |
return enumerable.Any(); | |
} | |
} |
NewerOlder