This file contains 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
var o = | |
JArray.Parse(@"[ | |
{ | |
""eventId"": ""fbf4a1a1-b4a3-4dfe-a01f-ec52c34e16e4"", | |
""eventType"": ""event-type"", | |
""data"": { | |
""BirthDate"": ""1987-11-07T00:00:00.000+01:00"" | |
} | |
} |
This file contains 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
JsonConvert.DefaultSettings = () => new JsonSerializerSettings | |
{ | |
DateParseHandling = DateParseHandling.None | |
}; | |
var foo = JsonConvert.DeserializeObject(@"[ | |
{ | |
""eventId"": ""fbf4a1a1-b4a3-4dfe-a01f-ec52c34e16e4"", | |
""eventType"": ""event-type"", | |
""data"": { |
This file contains 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
==20921== 2350 errors in context 22 of 32: | |
==20921== Conditional jump or move depends on uninitialised value(s) | |
==20921== at 0x51369C: sgen_sort_addresses (sgen-gc.c:1447) | |
==20921== by 0x52B879: sgen_optimize_pin_queue (sgen-pinning.c:154) | |
==20921== by 0x514803: major_copy_or_mark_from_roots (sgen-gc.c:2855) | |
==20921== by 0x515265: major_do_collection (sgen-gc.c:3277) | |
==20921== by 0x518F47: sgen_perform_collection (sgen-gc.c:3461) | |
==20921== by 0x51A8F4: sgen_los_alloc_large_inner (sgen-los.c:346) | |
==20921== by 0x50B1B2: mono_gc_alloc_obj_nolock (sgen-alloc.c:204) | |
==20921== by 0x50B6D7: mono_gc_alloc_vector (sgen-alloc.c:491) |
This file contains 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
==25222== Conditional jump or move depends on uninitialised value(s) | |
==25222== at 0x50F006: conservatively_pin_objects_from (sgen-gc.c:1476) | |
==25222== by 0x50F2BD: scan_thread_data (sgen-gc.c:4022) | |
==25222== by 0x518027: collect_nursery (sgen-gc.c:2566) | |
==25222== by 0x518C6A: sgen_perform_collection (sgen-gc.c:3445) | |
==25222== by 0x50B486: mono_gc_alloc_obj_nolock (sgen-alloc.c:288) | |
==25222== by 0x50B6D7: mono_gc_alloc_vector (sgen-alloc.c:491) | |
==25222== by 0x4E4255: mono_array_new_specific (object.c:4920) | |
==25222== by 0x40C1FE6: ??? | |
==25222== by 0x5C5D21F: ??? |
This file contains 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
var value = SomeCall(); | |
//value never used can I remove call to SomeCall()? |
This file contains 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
private bool DetectConcurrencyViolations(CheckpointTag expectedTag) | |
{ | |
//NOTE: the comment below is not longer actual | |
// Keeping it for reference only | |
// We do back-read all the streams when loading state, so we know exactly which version to expect | |
//TODO: if the following statement is about event order stream - let write null event into this stream | |
//NOTE: the following condition is only meant to detect concurrency violations when | |
// another instance of the projection (running in the another node etc) has been writing to | |
// the same stream. However, the expected tag sometimes can be greater than last actually written tag |
This file contains 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
//TODO GFY | |
//this is a really really stupid way of doing this and it only works properly if | |
//the moons align correctly in the 7th slot of jupiter on a tuesday when mercury | |
//is rising. However it sort of works right now (unless you have proxies/dns/other | |
//problems. |
This file contains 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
Greg@HOBGOBLIN ~/src/EventStore (idemp2) | |
$ git checkout dev | |
error: unable to create file src/EventStore/EventStore.Core/Services/Transport/H | |
ttp/Authentication/AnonymousHttpAuthenticationProvider.cs (Permission denied) | |
error: unable to create file src/EventStore/EventStore.Core/Services/Transport/H | |
ttp/Configure.cs (Permission denied) | |
error: unable to create file src/EventStore/EventStore.Projections.Core.Tests/Se | |
rvices/parallel_processing_load_balancer/when_creating.cs (Permission denied) | |
error: unable to create file src/EventStore/EventStore.Web.Playground/Properties | |
/AssemblyInfo.cs (Permission denied) |
This file contains 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
using System; | |
using System.Net; | |
using System.Text; | |
using System.Linq; | |
using System.Diagnostics; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
using EventStore.ClientAPI; | |
namespace Foo { |
This file contains 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
using System; | |
using System.Net; | |
using System.Text; | |
using System.Linq; | |
using System.Diagnostics; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
using EventStore.ClientAPI; | |
namespace Foo { |
OlderNewer