Пример #1
0
        public static IMessageBusConfiguration MessageDefinition(this IMessageBusConfiguration config, MessageMetadata definition)
        {
            if (config.MessageDefinitions == null)
            {
                config.MessageDefinitions = new List <MessageMetadata>();
            }

            config.MessageDefinitions.Add(definition);
            return(config);
        }