forked from peteraritchie/Event-handling
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some changes from today will put in gitignore tonight I hope
- Loading branch information
unknown
committed
Nov 24, 2010
1 parent
0f54fd4
commit 77902c8
Showing
42 changed files
with
495 additions
and
385 deletions.
There are no files selected for viewing
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
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
using System; | ||
namespace pvc.Core | ||
{ | ||
public static class Extensions | ||
{ | ||
public static Consumes<T> AsConsumer<T>(this Action<T> action) where T:Message { | ||
return new ActionWrappingConsumer<T>(action); | ||
} | ||
|
||
using System; | ||
namespace pvc.Core | ||
{ | ||
public static class Extensions | ||
{ | ||
public static Consumes<T> AsConsumer<T>(this Action<T> action) where T:Message | ||
{ | ||
if (action == null) throw new ArgumentNullException("action"); | ||
return new ActionWrappingConsumer<T>(action); | ||
} | ||
|
||
public static Action<T> AsAction<T>(this Consumes<T> consumer) where T:Message | ||
{ | ||
if (consumer == null) throw new ArgumentNullException("consumer"); | ||
return consumer.Handle; | ||
} | ||
|
||
} | ||
|
||
public static void TryConsume<T>(this Consumes<T> consumer, T message) where T:Message | ||
{ | ||
if (consumer == null) return; | ||
consumer.Handle(message); | ||
} | ||
|
||
public static Produces<T> AcceptingMany<T>(this Produces<T> produces) where T: Message | ||
{ | ||
if (produces == null) throw new ArgumentNullException("produces"); | ||
var multi = new Multiplexor<T>(); | ||
produces.AttachConsumer(multi); | ||
return multi; | ||
} | ||
} | ||
} | ||
|
||
} | ||
} | ||
} | ||
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+46 Bytes
(100%)
pvc.Core/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
C:\sode\Event-handling\pvc.Core\bin\Debug\pvc.Core.dll | ||
C:\sode\Event-handling\pvc.Core\bin\Debug\pvc.Core.pdb | ||
C:\sode\Event-handling\pvc.Core\obj\Debug\ResolveAssemblyReference.cache | ||
C:\sode\Event-handling\pvc.Core\obj\Debug\pvc.Core.dll | ||
C:\sode\Event-handling\pvc.Core\obj\Debug\pvc.Core.pdb | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Core\bin\Debug\pvc.Core.dll | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Core\bin\Debug\pvc.Core.pdb | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Core\obj\Debug\ResolveAssemblyReference.cache | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Core\obj\Debug\pvc.Core.dll | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Core\obj\Debug\pvc.Core.pdb |
Binary file not shown.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using System; | ||
using pvc.Core; | ||
|
||
namespace pvc.Projections | ||
{ | ||
|
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+69 Bytes
(100%)
pvc.Projections/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
14 changes: 7 additions & 7 deletions
14
pvc.Projections/obj/Debug/pvc.Projections.csproj.FileListAbsolute.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
C:\sode\Event-handling\pvc.Projections\bin\Debug\pvc.Projections.dll | ||
C:\sode\Event-handling\pvc.Projections\bin\Debug\pvc.Projections.pdb | ||
C:\sode\Event-handling\pvc.Projections\bin\Debug\pvc.Core.dll | ||
C:\sode\Event-handling\pvc.Projections\bin\Debug\pvc.Core.pdb | ||
C:\sode\Event-handling\pvc.Projections\obj\Debug\ResolveAssemblyReference.cache | ||
C:\sode\Event-handling\pvc.Projections\obj\Debug\pvc.Projections.dll | ||
C:\sode\Event-handling\pvc.Projections\obj\Debug\pvc.Projections.pdb | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Projections\bin\Debug\pvc.Projections.dll | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Projections\bin\Debug\pvc.Projections.pdb | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Projections\bin\Debug\pvc.Core.dll | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Projections\bin\Debug\pvc.Core.pdb | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Projections\obj\Debug\ResolveAssemblyReference.cache | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Projections\obj\Debug\pvc.Projections.dll | ||
C:\sode\Spikes\PayoutSpike\lib\Event-handling\pvc.Projections\obj\Debug\pvc.Projections.pdb |
Binary file not shown.
Binary file not shown.
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
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
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
Oops, something went wrong.