public EventStoreOrg(EventStoreConfiguration configuration, ILogger logger, ITypeLocator typeLocator) { _configuration = configuration; _logger = logger; _typeLocator = typeLocator; var jsonResolver = new PropertyCleanerSerializerContractResolver(); jsonResolver.IgnoreProperty(typeof(IEvent), "Version"); jsonResolver.RenameProperty(typeof(IEvent), "Id", "AggregateId"); _serializerSettings = new JsonSerializerSettings { ContractResolver = jsonResolver, Formatting = Formatting.Indented }; }
public EventStoreOrgBus(EventStoreConfiguration configuration, ILogger logger) { _configuration = configuration; _logger = logger; }