atc-net / atc-cosmos-eventstore Goto Github PK
View Code? Open in Web Editor NEWEvent store implementation for cosmos written in C#
Home Page: https://atc-net.github.io/repository/atc-cosmos-eventstore
License: MIT License
Event store implementation for cosmos written in C#
Home Page: https://atc-net.github.io/repository/atc-cosmos-eventstore
License: MIT License
Describe the bug
I have an issue where I have an event that contains a TimeOnly
type which was added in .NET 6. Sadly .NET 6 does not come with build in JsonConverter
for TimeOnly
and DateOnly
.
These are easily to implement as a custom JsonConverter
however there are no way to add these converter to the Event Store.
A "workaround" is to add the converters to the TimeOnly/DateOnly properties in the event object through JsonConverterAttribute
, like so:
[StreamEvent("event-name:v1")]
public record TimeEvent(
[property: JsonConverter(typeof(JsonTimeOnlyConverter))]
TimeOnly Time,
This works for simple cases but not if the I have more complex objects that contains TimeOnly
further down. Then I would have to make custom converters for these types, only to be able to handle deserialization of a single properties within it.
My code could also end up with a lot of these attributes if a have a lot of different events requiring custom converters.
To Reproduce
Steps to reproduce the behavior:
TimeOnly
or DateOnly
typeSystem.NotSupportedException : Serialization and deserialization of 'System.DateOnly/TimeOnly' instances are not supported
Expected behavior
I am able to add custom JsonConverters
to the Event Store client that are used when writing to, or reading from, the Event Store.
LARS og Egil jam
Persisting a large batch of events in a single command throws an exception that doesn't clearly explain why the operation failed
CosmosDb Transactional batch operation limitations
Currently, there are two known limits:
Expected behavior
Throw a more concrete error message in a specialized exception type would be the preferred way to describe why the operation failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.