예제 #1
0
			public EventSink(EventInitiator initiator)
			{
				Assert.IsNotNull(initiator);
				initiator.SimpleEvent += delegate
				{
					_simpleEventCalls.Inc();
				};
			}
예제 #2
0
 public EventSink(EventInitiator initiator)
 {
     Assert.IsNotNull(initiator);
     initiator.SimpleEvent += delegate
     {
         _simpleEventCalls.Inc();
     };
 }
예제 #3
0
파일: Event.cs 프로젝트: TobbenTM/Factorino
 protected Event(Models.Player initiator)
 {
     Initiator = new EventInitiator(initiator);
     Metadata  = new EventMetadata
     {
         CreatedAt      = DateTimeOffset.UtcNow.ToUnixTimeSeconds(),
         SourceAssembly = Assembly.GetEntryAssembly().FullName,
     };
 }
예제 #4
0
		public void SetUp()
		{
			_eventSink = new EventSink(_initiator = new EventInitiator());
		}
예제 #5
0
 public void SetUp()
 {
     _eventSink = new EventSink(_initiator = new EventInitiator());
 }