public ConventionsBuilder DefiningCommandsAs(Func<Type, bool> definesCommandType) { Guard.AgainstNull(nameof(definesCommandType), definesCommandType); Conventions.IsCommandTypeAction = definesCommandType; return this; }
public static void Init(ConventionsBuilder conventionsBuilder) { conventionsBuilder .DefiningCommandsAs(t => t.Namespace != null && t.Namespace.StartsWith("VideoStore") && t.Namespace.EndsWith("Commands")) .DefiningEventsAs(t => t.Namespace != null && t.Namespace.StartsWith("VideoStore") && t.Namespace.EndsWith("Events")) .DefiningMessagesAs(t => t.Namespace != null && t.Namespace.StartsWith("VideoStore") && t.Namespace.EndsWith("RequestResponse")) .DefiningEncryptedPropertiesAs(p => p.Name.StartsWith("Encrypted")); }