Skip to content

Commit

Permalink
initial push
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Nov 24, 2010
0 parents commit 0f54fd4
Show file tree
Hide file tree
Showing 477 changed files with 50,496 additions and 0 deletions.
61 changes: 61 additions & 0 deletions EventHandler.5.0.ReSharper.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<Configuration>
<SettingsComponent>
<string />
<integer />
<boolean>
<setting name="SolutionAnalysisEnabled">False</setting>
</boolean>
</SettingsComponent>
<RecentFiles>
<RecentFiles>
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:IEventLog.cs" caret="109" fromTop="4" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:EventContext.cs" caret="177" fromTop="7" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="607" fromTop="9" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="1149" fromTop="38" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:BatchingEventLogWriter.cs" caret="380" fromTop="12" />
</RecentFiles>
<RecentEdits>
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="0" fromTop="0" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="455" fromTop="16" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="944" fromTop="27" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="1529" fromTop="37" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="1523" fromTop="15" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="1523" fromTop="20" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="1529" fromTop="22" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="630" fromTop="29" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="630" fromTop="29" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="626" fromTop="14" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="626" fromTop="21" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="626" fromTop="27" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="626" fromTop="30" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="626" fromTop="32" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="626" fromTop="26" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="626" fromTop="20" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="397" fromTop="39" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="58" fromTop="2" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="625" fromTop="47" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="242" fromTop="29" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="180" fromTop="8" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:IEventLog.cs" caret="109" fromTop="4" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:EventContext.cs" caret="211" fromTop="8" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="180" fromTop="21" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="625" fromTop="54" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="1840" fromTop="56" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="353" fromTop="10" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:SerializedEventLog.cs" caret="180" fromTop="6" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:Class1.cs" caret="211" fromTop="6" />
<File id="B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1/f:BatchingEventLogWriter.cs" caret="378" fromTop="11" />
</RecentEdits>
</RecentFiles>
<NAntValidationSettings>
<NAntPath value="" />
</NAntValidationSettings>
<UnitTestRunner>
<Providers />
</UnitTestRunner>
<UnitTestRunnerNUnit>
<NUnitInstallDir IsNull="False">
</NUnitInstallDir>
<UseAddins>Never</UseAddins>
</UnitTestRunnerNUnit>
</Configuration>
23 changes: 23 additions & 0 deletions EventHandler.5.1.ReSharper.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Configuration>
<SettingsComponent>
<string />
<integer />
<boolean>
<setting name="SolutionAnalysisEnabled">False</setting>
</boolean>
</SettingsComponent>
<RecentFiles>
<RecentFiles />
<RecentEdits />
</RecentFiles>
<NAntValidationSettings>
<NAntPath value="" />
</NAntValidationSettings>
<UnitTestRunner>
<Providers />
</UnitTestRunner>
<UnitTestRunnerNUnit>
<NUnitInstallDir>C:\Program Files (x86)\NUnit 2.5.3\bin\net-2.0\</NUnitInstallDir>
<UseAddins>Never</UseAddins>
</UnitTestRunnerNUnit>
</Configuration>
50 changes: 50 additions & 0 deletions EventHandler.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "pvc.Core", "pvc.Core\pvc.Core.csproj", "{B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "pvc.Tests", "pvc.Tests\pvc.Tests.csproj", "{0452212F-EB0E-43AB-80EA-48AF7656B7B4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "pvc.Projections", "pvc.Projections\pvc.Projections.csproj", "{A852309C-564E-47DC-B046-A7183F295D25}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://tfs:8080/tfs/defaultcollection
SccLocalPath0 = .
SccProjectUniqueName1 = EventHandler\\EventHandler.csproj
SccProjectName1 = EventHandler
SccLocalPath1 = EventHandler
SccProjectUniqueName2 = EventRunner\\EventRunner.csproj
SccProjectName2 = EventRunner
SccLocalPath2 = EventRunner
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1}.Release|Any CPU.Build.0 = Release|Any CPU
{0452212F-EB0E-43AB-80EA-48AF7656B7B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0452212F-EB0E-43AB-80EA-48AF7656B7B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0452212F-EB0E-43AB-80EA-48AF7656B7B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0452212F-EB0E-43AB-80EA-48AF7656B7B4}.Release|Any CPU.Build.0 = Release|Any CPU
{A852309C-564E-47DC-B046-A7183F295D25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A852309C-564E-47DC-B046-A7183F295D25}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A852309C-564E-47DC-B046-A7183F295D25}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A852309C-564E-47DC-B046-A7183F295D25}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = EventRunner\EventRunner.csproj
Policies = $0
$0.StandardHeader = $1
$1.inheritsSet = MITX11License
EndGlobalSection
EndGlobal
Binary file added EventHandler.suo
Binary file not shown.
52 changes: 52 additions & 0 deletions EventHandler.userprefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" ctype="Workspace" />
<MonoDevelop.Ide.Workbench ActiveDocument="EventHandler/Projections/AuditProjection.cs" ctype="Workbench">
<Files>
<File FileName="EventHandler.Tests/MultiplexorTests.cs" Line="107" Column="24" />
<File FileName="EventHandler/Multiplexor.cs" Line="31" Column="3" />
<File FileName="EventHandler.Tests/TestConsumer.cs" Line="56" Column="35" />
<File FileName="EventHandler.Tests/TestConsumerTests.cs" Line="64" Column="40" />
<File FileName="EventHandler.Tests/ConsumerFixture.cs" Line="47" Column="12" />
<File FileName="EventHandler/NarrowingConsumer.cs" Line="1" Column="1" />
<File FileName="EventHandler/PipeAdapter.cs" Line="1" Column="1" />
<File FileName="EventHandler/ProjectionHost.cs" Line="1" Column="1" />
<File FileName="EventHandler/SerializedEventLog.cs" Line="1" Column="1" />
<File FileName="EventHandler/ThreadBoundary.cs" Line="58" Column="2" />
<File FileName="EventHandler/EventAggregator.cs" Line="1" Column="1" />
<File FileName="EventHandler/Combiner.cs" Line="3" Column="29" />
<File FileName="EventHandler.Tests/ByTypeDispatcherTests.cs" Line="71" Column="1" />
<File FileName="EventHandler.Tests/Messages/TestMessage.cs" Line="1" Column="1" />
<File FileName="EventHandler.Tests/Messages/OtherMessage.cs" Line="28" Column="2" />
<File FileName="EventHandler.Tests/WindeningConsumerTests.cs" Line="38" Column="10" />
<File FileName="EventHandler/QueueWriter.cs" Line="1" Column="1" />
<File FileName="EventHandler/ActionWrappingConsumer.cs" Line="1" Column="1" />
<File FileName="EventHandler/BufferMessagesConsumer.cs" Line="3" Column="1" />
<File FileName="EventHandler/TypeFinder.cs" Line="1" Column="1" />
<File FileName="EventHandler/Projections/AuditProjection.cs" Line="1" Column="1" />
</Files>
<Pads>
<Pad Id="ProjectPad">
<State expanded="True">
<Node name="EventHandler" expanded="True">
<Node name="References" expanded="True" />
<Node name="Messages" expanded="True" />
<Node name="Projections" expanded="True">
<Node name="AuditProjection.cs" selected="True" />
</Node>
</Node>
<Node name="EventHandler.Tests" expanded="True">
<Node name="Messages" expanded="True" />
</Node>
<Node name="EventRunner" expanded="True" />
</State>
</Pad>
</Pads>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore>
<Breakpoint file="/home/greg/src/EventHandler/EventHandler/IPipeline.cs" line="4" />
</BreakpointStore>
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches ctype="PinnedWatchStore" />
<AuthorInfo Name="Greg Young" Email="gregoryyoung1@gmail.com" Copyright="Greg Young" ctype="AuthorInformation" />
</Properties>
10 changes: 10 additions & 0 deletions EventHandler.vssscc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
}
Binary file added EventHandler.zip
Binary file not shown.
70 changes: 70 additions & 0 deletions EventRunner/EventRunner.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{E4095CBD-4C89-4468-A8D1-DC751AFB2A0E}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>EventRunner</RootNamespace>
<AssemblyName>EventRunner</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\EventHandler\pvc.Core.csproj">
<Project>{B4EBBFC1-A4B7-4F90-86CF-B73E1E6674B1}</Project>
<Name>pvc.Core</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
10 changes: 10 additions & 0 deletions EventRunner/EventRunner.csproj.vspscc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}
Binary file added EventRunner/EventRunner.pidb
Binary file not shown.
51 changes: 51 additions & 0 deletions EventRunner/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using pvc.Core;
using pvc.Core.Messages;

namespace EventRunner
{
class Program
{
static void Noop(FooMessage message) { }
static void Main(string[] args)
{
var eventAggregator = new EventAggregator<Message>();
var projectionHost = new ProjectionHost(eventAggregator);

projectionHost.SetUpProjections();

var inMemQueue = new InMemQueue<Message>();
var reader = new QueueReader<Message>(inMemQueue);
eventAggregator.AttachTo(reader);

var foo = new QueueWriter<Message>(inMemQueue);
reader.Start();
while(true)
{
foo.Handle(new FooMessage());
Thread.Sleep(1000);
}

//var dispatcher = new ByTypeDispatcher();
//dispatcher.Subscribe(new FooHandler());
//dispatcher.Handle(new FooMessage());
}
}

internal class FooHandler : Consumes<FooMessage>
{
public void Handle(FooMessage message)
{
throw new YayException();
}
}

internal class YayException : Exception
{
}

}
36 changes: 36 additions & 0 deletions EventRunner/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("EventRunner")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("EventRunner")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("19285f89-2149-4899-a42d-25c1560f2b0b")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
3 changes: 3 additions & 0 deletions EventRunner/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Binary file added EventRunner/bin/Debug/EventHandler.dll
Binary file not shown.
Binary file added EventRunner/bin/Debug/EventHandler.dll.mdb
Binary file not shown.
Binary file added EventRunner/bin/Debug/EventHandler.pdb
Binary file not shown.
Binary file added EventRunner/bin/Debug/EventRunner.exe
Binary file not shown.
3 changes: 3 additions & 0 deletions EventRunner/bin/Debug/EventRunner.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Binary file added EventRunner/bin/Debug/EventRunner.pdb
Binary file not shown.
Binary file added EventRunner/bin/Debug/EventRunner.vshost.exe
Binary file not shown.
3 changes: 3 additions & 0 deletions EventRunner/bin/Debug/EventRunner.vshost.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
11 changes: 11 additions & 0 deletions EventRunner/bin/Debug/EventRunner.vshost.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Binary file not shown.
Loading

0 comments on commit 0f54fd4

Please sign in to comment.