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
function UserWasCreated(id, name){ | |
this.Event = arguments.callee.name; | |
this.UserId=id; | |
this.Name=name; | |
} | |
function UserWasRenamed(id, name){ | |
this.Event = arguments.callee.name; | |
this.UserId=id; |
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
public interface IProvideData | |
{ | |
bool Provides(string key); | |
string Key { get; } | |
string Description { get; } | |
string Target { get; } | |
DatenTabelle DesignData(); | |
DatenTabelle DemoData(); |
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
public static ModulKonfigurator EntlassungsantragReporting(this ModulKonfigurator cfg) | |
{ | |
cfg.AttachDataproviderToViewmodel("EntlassungBeantragenViewmodel", "VM:Entlassungsantrag") | |
.Provide("Antragsdaten", "Antragsdaten zum Entlassungsantrag") | |
.Datenspalte("Stichtag", "01.01.2000", "Stichtag der Entlassung") | |
.Datenspalte("Grund", "Ablauf der Förderhöchstdauer", "Grund der Entlassung") | |
.Datenspalte("Aufnahme", "01.01.2000", "Aufnahmedatum des ersten Kindes") | |
.End() |
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
/// <summary> | |
/// Encapsulates a zeroMQ context and a worker thread. | |
/// Use the ZmqPollPool to server multiple 0mq sockets with single-threaded semantics. | |
/// | |
/// Use MarshalAndWait or MarshalAsync to marshal 0mq context access to the working thread. | |
/// Call Dispose to close all registered sockets and terminate the context and thread. | |
/// </summary> | |
public class ZmqPollPool : IDisposable | |
{ | |
private TimeSpan _pollTimeout; |
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
public sealed class ZmqEventServer | |
{ | |
public ZmqEventServer(ZmqPollPool pool, NetworkAddress broadcastAddress, NetworkAddress listenAddress) | |
{ | |
if (!listenAddress.IsBindable) throw new ArgumentException("listen address must be bindable (i.e. IP address instead of DNS name)"); | |
ZmqSocket broadcast=null; | |
var broadcastAddr = broadcastAddress.String; | |
var listenAddr = listenAddress.String; |
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.Diagnostics; | |
using System.Threading; | |
using NUnit.Framework; | |
using fastJSON; | |
namespace UnitTests | |
{ | |
[TestFixture] | |
internal class Concurrency_bug_in_2_0_5 |
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
diff --git a/fastJSON/JSON.cs b/fastJSON/JSON.cs | |
index d2f651e..0915fc1 100644 | |
--- a/fastJSON/JSON.cs | |
+++ b/fastJSON/JSON.cs | |
@@ -64,7 +64,17 @@ namespace fastJSON | |
public sealed class JSON | |
{ | |
- public readonly static JSON Instance = new JSON(); | |
+ [ThreadStatic] |
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
Kata: Fluent DSL Builder Pattern in c# | |
Es sollen SQL-artige Connectionstrings | |
des Musters | |
SQL:[UserId/Passwort@]{hostname|IP}#dbname | |
durch eine Fluent Konfigurationssprache erstellt werden. |
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
class EventStore{ | |
void Save(Guid commandId, Event[] events); | |
} | |
class EventPublisher{ | |
void Save(Guid senderSession, Event[] events); | |
} | |
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
namespace Target.Sicherheit | |
{ | |
public enum Entitaeten | |
{ | |
Benutzersitzung | |
} | |
public enum Rechte | |
{ |
OlderNewer