Permalink
Browse files

removing message logging. we now have a better story for it with the …

…new cofig model and rabbitmq
  • Loading branch information...
1 parent 079ff60 commit 3a0937e861b066e22e89a064adb9ed1bae91653a @drusellers drusellers committed May 14, 2011
View
24 src/MessageLog/MassTransit.Services.MessageLog/LogEntry.cs
@@ -1,24 +0,0 @@
-// Copyright 2007-2010 The Apache Software Foundation.
-//
-// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-// this file except in compliance with the License. You may obtain a copy of the
-// License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software distributed
-// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-// CONDITIONS OF ANY KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations under the License.
-namespace MassTransit.Services.MessageLog
-{
- using System;
-
- public class LogEntry
- {
- public int Id { get; set; }
- public byte[] RawMessage { get; set; }
- public DateTime ObservedAt { get; set; }
- public string MessageType { get; set; }
- }
-}
View
57 src/MessageLog/MassTransit.Services.MessageLog/MassTransit.Services.MessageLog.csproj
@@ -1,57 +0,0 @@
-<?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)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{74E13473-D5DD-4E02-B516-B5A1BD3D0A9B}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>MassTransit.Services.MessageLog</RootNamespace>
- <AssemblyName>MassTransit.Services.MessageLog</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </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>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="Microsoft.CSharp" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="LogEntry.cs" />
- <Compile Include="MessageLoggingService.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\MassTransit\MassTransit.csproj">
- <Project>{6EFD69FC-CBCC-4F85-AEE0-EFBA73F4D273}</Project>
- <Name>MassTransit</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\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>
View
62 src/MessageLog/MassTransit.Services.MessageLog/MessageLoggingService.cs
@@ -1,62 +0,0 @@
-// Copyright 2007-2010 The Apache Software Foundation.
-//
-// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-// this file except in compliance with the License. You may obtain a copy of the
-// License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software distributed
-// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-// CONDITIONS OF ANY KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations under the License.
-namespace MassTransit.Services.MessageLog
-{
- using System;
- using System.IO;
- using Internal;
- using Pipeline;
- using Serialization.Custom;
-
- public class MessageLoggingService :
- IBusService
- {
- UnregisterAction _dispose;
- CustomXmlSerializer _serializer;
-
- public void Dispose()
- {
- //do nothing
- }
-
- public void Start(IServiceBus bus)
- {
- _serializer = new CustomXmlSerializer();
- _dispose = bus.OutboundPipeline.Filter<object>(m =>
- {
- //TODO: run in a fiber w/ an actor
-
- using (var stream = new MemoryStream())
- {
- _serializer.Serialize(stream, m);
- var data = stream.ToArray();
- var log = new LogEntry
- {
- MessageType = m.GetType().FullName,
- RawMessage = data,
- ObservedAt = DateTime.Now
- };
-
- //repo.save(log)
- }
-
- return true;
- });
- }
-
- public void Stop()
- {
- _dispose();
- }
- }
-}
View
36 src/MessageLog/MassTransit.Services.MessageLog/Properties/AssemblyInfo.cs
@@ -1,36 +0,0 @@
-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("MassTransit.Services.MessageLog")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("MassTransit.Services.MessageLog")]
-[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("26600348-b763-4e6a-b8b4-1e9fe46d1132")]
-
-// 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")]

0 comments on commit 3a0937e

Please sign in to comment.