Click here to Skip to main content
15,892,643 members
Articles / Programming Languages / C#

EventBroker: a notification component for synchronous and asynchronous, loosly coupled event handling

Rate me:
Please Sign up or sign in to vote.
4.89/5 (25 votes)
26 Oct 2008Apache9 min read 198.3K   2K   123  
EventBroker is a notification component for (a)synchronous loosly coupled event handling.
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{81DE807D-D637-4B10-8AE1-13EA5AC1A80D}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>bbv.Common.EventBroker</RootNamespace>
    <AssemblyName>bbv.Common.EventBroker</AssemblyName>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>..\bbv.Common.snk</AssemblyOriginatorKeyFile>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>2.0</OldToolsVersion>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <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|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>bin\Release\bbv.Common.EventBroker.XML</DocumentationFile>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\ExternalLibs\log4net.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="..\GlobalAssemblyInfo.cs">
      <Link>Properties\GlobalAssemblyInfo.cs</Link>
    </Compile>
    <Compile Include="..\VersionAssemblyInfo.cs">
      <Link>Properties\VersionAssemblyInfo.cs</Link>
    </Compile>
    <Compile Include="EventBroker.cs" />
    <Compile Include="EventInspector.cs" />
    <Compile Include="EventPublicationAttribute.cs" />
    <Compile Include="EventSubscriptionAttribute.cs" />
    <Compile Include="EventTopic.cs" />
    <Compile Include="EventTopicFireDelegate.cs" />
    <Compile Include="EventTopicHost.cs" />
    <Compile Include="Exceptions\EventBrokerException.cs" />
    <Compile Include="Exceptions\EventTopicException.cs" />
    <Compile Include="Exceptions\InvalidPublicationSignatureException.cs" />
    <Compile Include="Exceptions\InvalidSubscriptionSignatureException.cs" />
    <Compile Include="Exceptions\NotUserInterfaceThreadException.cs" />
    <Compile Include="Exceptions\PublisherEventNotFound.cs" />
    <Compile Include="Exceptions\RepeatedPublicationException.cs" />
    <Compile Include="Exceptions\StaticPublisherEventException.cs" />
    <Compile Include="Exceptions\StaticSubscriberHandlerException.cs" />
    <Compile Include="Exceptions\SubscriberHandlerNotFoundException.cs" />
    <Compile Include="Handlers\Background.cs" />
    <Compile Include="Handlers\Publisher.cs" />
    <Compile Include="Handlers\UserInterface.cs" />
    <Compile Include="Handlers\UserInterfaceAsync.cs" />
    <Compile Include="Handlers\UserInterfaceSyncContextHolder.cs" />
    <Compile Include="IEventBroker.cs" />
    <Compile Include="IEventTopic.cs" />
    <Compile Include="IEventTopicHost.cs" />
    <Compile Include="IFactory.cs" />
    <Compile Include="IHandler.cs" />
    <Compile Include="INamedItem.cs" />
    <Compile Include="IPublication.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Publication.cs" />
    <Compile Include="ScopeMatchers\PublishToChildren.cs" />
    <Compile Include="ScopeMatchers\SubscribeToChildren.cs" />
    <Compile Include="ScopeMatchers\SubscribeGlobal.cs" />
    <Compile Include="ScopeMatchers\SubscribeToParents.cs" />
    <Compile Include="ScopeMatchers\ISubscriptionScopeMatcher.cs" />
    <Compile Include="ScopeMatchers\PublishGlobal.cs" />
    <Compile Include="ScopeMatchers\PublishToParents.cs" />
    <Compile Include="ScopeMatchers\IPublicationScopeMatcher.cs" />
    <Compile Include="SpontaneousPublication.cs" />
    <Compile Include="StandardFactory.cs" />
    <Compile Include="Subscription.cs" />
    <Compile Include="UnitTestFactory.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="..\bbv.Common.snk">
      <Link>bbv.Common.snk</Link>
    </None>
    <None Include="EventBroker.cd" />
  </ItemGroup>
  <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>
  -->
  <PropertyGroup>
    <PostBuildEvent>
    </PostBuildEvent>
  </PropertyGroup>
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Architect bbv Software Services AG
Switzerland Switzerland
Urs Enzler is working for bbv Software Services in Switzerland as a Software Architect.

Blogger at planetgeek.ch

Comments and Discussions