changeset 23:399398841fd0

Working version for Stocks (including loosely coupled components
author adminsh@apollo
date Tue, 20 Mar 2012 16:53:29 +0000
parents a7a4cde39999
children a8b50a087544
files .hgignore MetroWpf/MetroWpf.sln MetroWpf/MetroWpf/IoCModule.cs MetroWpf/MetroWpf/Locator.cs MetroWpf/MetroWpf/MetroWpf.csproj MetroWpf/MetroWpf/Presentation/Images/DOWN.png MetroWpf/MetroWpf/Presentation/Images/LEVEL.png MetroWpf/MetroWpf/Presentation/Images/UNK.png MetroWpf/MetroWpf/Presentation/Images/UP.png MetroWpf/MetroWpf/Presentation/Menu/MenuView.xaml MetroWpf/MetroWpf/Presentation/Stocks/DisplayStockPrice.cs MetroWpf/MetroWpf/Presentation/Stocks/StocksView.xaml MetroWpf/MetroWpf/Presentation/Stocks/StocksView.xaml.cs MetroWpf/MetroWpf/Presentation/Stocks/StocksViewModel.cs MetroWpf/Stocks.Service/StocksService.cs MetroWpf/Stocks.UI/App.xaml MetroWpf/Stocks.UI/App.xaml.cs MetroWpf/Stocks.UI/Converters/DeltaToIconConverter.cs MetroWpf/Stocks.UI/DisplayStockPrice.cs MetroWpf/Stocks.UI/Images/DOWN.png MetroWpf/Stocks.UI/Images/LEVEL.png MetroWpf/Stocks.UI/Images/UNK.png MetroWpf/Stocks.UI/Images/UP.png MetroWpf/Stocks.UI/Locator.cs MetroWpf/Stocks.UI/Models/DisplayStockPrice.cs MetroWpf/Stocks.UI/Properties/AssemblyInfo.cs MetroWpf/Stocks.UI/Properties/Resources.Designer.cs MetroWpf/Stocks.UI/Properties/Resources.resx MetroWpf/Stocks.UI/Properties/Settings.Designer.cs MetroWpf/Stocks.UI/Properties/Settings.settings MetroWpf/Stocks.UI/Stocks.UI.csproj MetroWpf/Stocks.UI/StocksView.xaml MetroWpf/Stocks.UI/StocksView.xaml.cs MetroWpf/Stocks.UI/StocksViewModel.cs MetroWpf/Stocks.UI/ViewModels/StocksViewModel.cs MetroWpf/Stocks.UI/Views/StocksView.xaml MetroWpf/Stocks.UI/Views/StocksView.xaml.cs Stocks/Stocks.Service/App.config Stocks/Stocks.Service/AssemblyInit.cs Stocks/Stocks.Service/NLog.config Stocks/Stocks.Service/NLog.xsd Stocks/Stocks.Service/Properties/AssemblyInfo.cs Stocks/Stocks.Service/StocksService.cs Stocks/Stocks.Service/packages.config
diffstat 44 files changed, 3536 insertions(+), 3656 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue Mar 20 15:07:49 2012 +0000
+++ b/.hgignore	Tue Mar 20 16:53:29 2012 +0000
@@ -4,3 +4,4 @@
 *.suo
 *.csproj.user
 */obj/*
+*/_ReSharper*
--- a/MetroWpf/MetroWpf.sln	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/MetroWpf.sln	Tue Mar 20 16:53:29 2012 +0000
@@ -13,6 +13,8 @@
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stocks.Common", "Stocks.Common\Stocks.Common.csproj", "{847365D2-E27B-44C3-8DF4-B749D9FA65D7}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stocks.UI", "Stocks.UI\Stocks.UI.csproj", "{BF20711D-4863-4FD3-9B6C-42D4E677D85C}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -83,6 +85,16 @@
 		{847365D2-E27B-44C3-8DF4-B749D9FA65D7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{847365D2-E27B-44C3-8DF4-B749D9FA65D7}.Release|Mixed Platforms.Build.0 = Release|Any CPU
 		{847365D2-E27B-44C3-8DF4-B749D9FA65D7}.Release|x86.ActiveCfg = Release|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Release|Any CPU.Build.0 = Release|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{BF20711D-4863-4FD3-9B6C-42D4E677D85C}.Release|x86.ActiveCfg = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
--- a/MetroWpf/MetroWpf/IoCModule.cs	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/MetroWpf/IoCModule.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -7,11 +7,11 @@
 using MetroWpf.Presentation.Menu;
 using MetroWpf.Presentation.Settings;
 using MetroWpf.Presentation.Shell;
-using MetroWpf.Presentation.Stocks;
 using MetroWpf.Presentation.UserProfile;
 using Ninject.Modules;
 using Stocks.Common;
 using Stocks.Service;
+using Stocks.UI.ViewModels;
 
 namespace MetroWpf
 {
--- a/MetroWpf/MetroWpf/Locator.cs	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/MetroWpf/Locator.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -4,11 +4,11 @@
 using MetroWpf.Presentation.Shell;
 using MetroWpf.Presentation.Settings;
 using MetroWpf.Presentation.Login;
-using MetroWpf.Presentation.Stocks;
 using MetroWpf.Presentation.UserProfile;
 using MetroWpf.Presentation.About;
 using MetroWpf.Presentation.Menu;
 using Microsoft.Practices.ServiceLocation;
+using Stocks.UI.ViewModels;
 
 namespace MetroWpf
 {
--- a/MetroWpf/MetroWpf/MetroWpf.csproj	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/MetroWpf/MetroWpf.csproj	Tue Mar 20 16:53:29 2012 +0000
@@ -96,11 +96,6 @@
     <Compile Include="Messages\AuthenticatedUserMessage.cs" />
     <Compile Include="Messages\NavigationMessage.cs" />
     <Compile Include="NinjectServiceLocatorExt.cs" />
-    <Compile Include="Presentation\Stocks\DisplayStockPrice.cs" />
-    <Compile Include="Presentation\Stocks\StocksView.xaml.cs">
-      <DependentUpon>StocksView.xaml</DependentUpon>
-    </Compile>
-    <Compile Include="Presentation\Stocks\StocksViewModel.cs" />
     <Compile Include="Services\Interfaces\INavigationService.cs" />
     <Compile Include="Services\NavigationService.cs" />
     <Compile Include="Presentation\About\AboutView.xaml.cs">
@@ -185,10 +180,6 @@
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </Page>
-    <Page Include="Presentation\Stocks\StocksView.xaml">
-      <Generator>MSBuild:Compile</Generator>
-      <SubType>Designer</SubType>
-    </Page>
     <Page Include="Presentation\UserProfile\UserProfileView.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
@@ -223,18 +214,10 @@
       <Project>{47F54122-5381-48D8-ACF7-72BBE0353511}</Project>
       <Name>Stocks.Service</Name>
     </ProjectReference>
-  </ItemGroup>
-  <ItemGroup>
-    <Resource Include="Presentation\Images\DOWN.png" />
-  </ItemGroup>
-  <ItemGroup>
-    <Resource Include="Presentation\Images\LEVEL.png" />
-  </ItemGroup>
-  <ItemGroup>
-    <Resource Include="Presentation\Images\UNK.png" />
-  </ItemGroup>
-  <ItemGroup>
-    <Resource Include="Presentation\Images\UP.png" />
+    <ProjectReference Include="..\Stocks.UI\Stocks.UI.csproj">
+      <Project>{BF20711D-4863-4FD3-9B6C-42D4E677D85C}</Project>
+      <Name>Stocks.UI</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. 
Binary file MetroWpf/MetroWpf/Presentation/Images/DOWN.png has changed
Binary file MetroWpf/MetroWpf/Presentation/Images/LEVEL.png has changed
Binary file MetroWpf/MetroWpf/Presentation/Images/UNK.png has changed
Binary file MetroWpf/MetroWpf/Presentation/Images/UP.png has changed
--- a/MetroWpf/MetroWpf/Presentation/Menu/MenuView.xaml	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/MetroWpf/Presentation/Menu/MenuView.xaml	Tue Mar 20 16:53:29 2012 +0000
@@ -7,7 +7,7 @@
              xmlns:login="clr-namespace:MetroWpf.Presentation.Login"
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
              xmlns:settings="clr-namespace:MetroWpf.Presentation.Settings"
-             xmlns:Stocks="clr-namespace:MetroWpf.Presentation.Stocks"
+             xmlns:stocks="clr-namespace:Stocks.UI.Views;assembly=Stocks.UI"
              xmlns:userprofile="clr-namespace:MetroWpf.Presentation.UserProfile"
              DataContext="{Binding MenuViewModel,
                                    Source={StaticResource Locator}}"
@@ -16,8 +16,8 @@
         <TabControl x:Name="tabHost" SelectedIndex="{Binding SelectedTabIndex, Converter={converters:EnumToIntConverter}}">
 
             <TabItem Header="_Stocks" Visibility="{Binding ShowStocks, Converter={converters:BooleanToVisibilityConverter}}">
-                <StackPanel Margin="25,10" HorizontalAlignment="Center"  >
-                    <Stocks:StocksView  />
+                <StackPanel Margin="25,10" HorizontalAlignment="Center">
+                    <stocks:StocksView DataContext="{Binding StocksViewModel, Source={StaticResource Locator}}" />
                 </StackPanel>
             </TabItem>
 
--- a/MetroWpf/MetroWpf/Presentation/Stocks/DisplayStockPrice.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,92 +0,0 @@
-using GalaSoft.MvvmLight;
-using Stocks.Common.Models;
-
-namespace MetroWpf.Presentation.Stocks
-{
-    public class DisplayStockPrice : ObservableObject
-    {
-        public static DisplayStockPrice Create(Price price)
-        {
-            return new DisplayStockPrice()
-                       {
-                           CompanyName =  price.CompanyName,
-                           Symbol = price.Symbol,
-                           CurrentPrice = price.CurrentPrice,
-                           PreviousPrice = price.PreviousPrice
-                       };
-        }
-
-        public void Update(Price price)
-        {
-            Symbol = price.Symbol;
-            CurrentPrice = price.CurrentPrice;
-            PreviousPrice = price.PreviousPrice;
-            Delta = price.CurrentPrice - price.PreviousPrice;
-        }
-
-        public const string SymbolPropertyName = "Symbol";
-        private string _symbol;
-        public string Symbol
-        {
-            get { return _symbol; }
-            private set
-            {
-                if (_symbol == value) return;
-                _symbol = value;
-                RaisePropertyChanged(SymbolPropertyName);
-            }
-        }
-
-        public const string CompanyNamePropertyName = "CompanyName";
-        private string _companyName;
-        public string CompanyName
-        {
-            get { return _companyName; }
-            private set
-            {
-                if (_companyName == value) return;
-                _companyName = value;
-                RaisePropertyChanged(CompanyNamePropertyName);
-            }
-        }
-
-        public const string CurrentPricePropertyName = "CurrentPrice";
-        private decimal _currentPrice = 0;
-        public decimal CurrentPrice
-        {
-            get { return _currentPrice; }
-            private set
-            {
-                if (_currentPrice == value) return;
-                _currentPrice = value;
-                RaisePropertyChanged(CurrentPricePropertyName);
-            }
-        }
-
-        public const string PreviousPricePropertyName = "PreviousPrice";
-        private decimal _previousPrice = 0;
-        public decimal PreviousPrice
-        {
-            get { return _previousPrice; }
-            private set
-            {
-                if (_previousPrice == value) return;
-                _previousPrice = value;
-                RaisePropertyChanged(PreviousPricePropertyName);
-            }
-        }
-
-        public const string DeltaPropertyName = "Delta";
-        private decimal _delta = 0;
-        public decimal Delta
-        {
-            get { return _delta; }
-            private set
-            {
-                if (_delta == value) return;
-                _delta = value;
-                RaisePropertyChanged(DeltaPropertyName);
-            }
-        }
-    }
-}
--- a/MetroWpf/MetroWpf/Presentation/Stocks/StocksView.xaml	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,89 +0,0 @@
-<UserControl x:Class="MetroWpf.Presentation.Stocks.StocksView"
-             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-             xmlns:Converters="clr-namespace:MetroWpf.Converters"
-             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
-             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
-             d:DesignHeight="100"
-             d:DesignWidth="600"
-             DataContext="{Binding StocksViewModel,
-                                   Source={StaticResource Locator}}"
-             mc:Ignorable="d">
-
-    <Grid x:Name="LayoutRoot">
-        <Grid.RowDefinitions>
-            <RowDefinition Height="60" />
-            <RowDefinition Height="20" />
-            <RowDefinition Height="400" />
-            <RowDefinition Height="180" />
-        </Grid.RowDefinitions>
-        <Grid.Resources>
-            <Converters:BoolToServiceRunningTextConverter x:Key="BoolToServiceRunningTextConverter" />
-            <Converters:BoolToSubscribedTextConverter x:Key="BoolToSubscribedTextConverter" />
-            <Converters:DeltaToIconConverter x:Key="DeltaToIconConverter" />
-            <Converters:AbsoluteNumberConverter x:Key="AbsoluteNumberConverter" />
-            <!--  <Converters:DateTimeToTimeConverter x:Key="DateTimeToTimeConverter" />  -->
-        </Grid.Resources>
-
-        <StackPanel Grid.Row="0" Orientation="Horizontal">
-            <Button x:Name="btnServiceRunning"
-                    Width="100"
-                    Height="30"
-                    Margin="5,0,0,0"
-                    HorizontalAlignment="Left"
-                    Command="{Binding ServiceCommand,
-                                      Mode=TwoWay}"
-                    Content="{Binding ServiceRunning,
-                                      Converter={StaticResource BoolToServiceRunningTextConverter}}" />
-            <Button x:Name="btnSubscribe"
-                    Width="100"
-                    Height="30"
-                    Margin="10,0,0,0"
-                    HorizontalAlignment="Left"
-                    Command="{Binding SubscriptionCommand,
-                                      Mode=TwoWay}"
-                    Content="{Binding Subscribed,
-                                      Converter={StaticResource BoolToSubscribedTextConverter}}" />
-        </StackPanel>
-
-        <StackPanel Grid.Row="1" Orientation="Horizontal">
-            <TextBlock Width="260"
-                       Margin="5,0,0,0"
-                       Text="Company" />
-            <TextBlock Width="80" Text="Symbol" />
-            <TextBlock Width="100" Text="Price" />
-            <TextBlock Width="100" Text="Previous" />
-            <TextBlock Width="105" Text="Change" />
-        </StackPanel>
-        <ListBox x:Name="lbStockPrices"
-                 Grid.Row="2"
-                 BorderThickness="0"
-                 FontFamily="Segoe UI"
-                 ItemsSource="{Binding Path=DisplayStockPrices}">
-            <ListBox.ItemTemplate>
-                <DataTemplate>
-                    <StackPanel Orientation="Horizontal">
-                        <TextBlock Width="263"
-                                   Margin="2,0,0,0"
-                                   FontSize="15"
-                                   Text="{Binding CompanyName}" />
-                        <TextBlock Width="80"
-                                   FontSize="15"
-                                   Text="{Binding Symbol}" />
-                        <TextBlock Width="100"
-                                   FontSize="15"
-                                   Text="{Binding CurrentPrice}" />
-                        <TextBlock Width="100"
-                                   FontSize="15"
-                                   Text="{Binding PreviousPrice}" />
-                        <Image Width="20" Source="{Binding Delta, Converter={StaticResource DeltaToIconConverter}}" />
-                        <TextBlock Width="85"
-                                   FontSize="15"
-                                   Text="{Binding Delta,
-                                                  Converter={StaticResource AbsoluteNumberConverter}}" />
-                    </StackPanel>
-                </DataTemplate>
-            </ListBox.ItemTemplate>
-        </ListBox>
-    </Grid>
-</UserControl>
\ No newline at end of file
--- a/MetroWpf/MetroWpf/Presentation/Stocks/StocksView.xaml.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-using System.Windows.Controls;
-
-namespace MetroWpf.Presentation.Stocks
-{
-    /// <summary>
-    /// Interaction logic for StocksView.xaml
-    /// </summary>
-    public partial class StocksView : UserControl
-    {
-        public StocksView()
-        {
-            InitializeComponent();
-        }
-    }
-}
--- a/MetroWpf/MetroWpf/Presentation/Stocks/StocksViewModel.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,108 +0,0 @@
-using System;
-using System.ComponentModel;
-using System.Linq;
-using System.Reactive;
-using System.Reactive.Linq;
-using System.Windows.Input;
-using GalaSoft.MvvmLight;
-using GalaSoft.MvvmLight.Command;
-using Stocks.Common;
-using Stocks.Common.Events;
-
-namespace MetroWpf.Presentation.Stocks
-{
-    public class StocksViewModel : ViewModelBase
-    {
-        private readonly IStocksService _service;
-
-        public BindingList<DisplayStockPrice> DisplayStockPrices { get; set; }
-        public ICommand ServiceCommand { get; set; }
-        public ICommand SubscriptionCommand { get; set; }
-
-        public StocksViewModel(IStocksService service)
-        {
-            _service = service;
-            GetLatestPrices();
-
-            SubscriptionCommand = new RelayCommand(SubscriptionCommandExecute);
-            ServiceCommand = new RelayCommand(ServiceRunningCommandExecute);
-
-            var priceUpdates = Observable.FromEventPattern<PriceChangedEventArgs>(
-                _service, 
-                "PriceChanged");
-
-            priceUpdates.Where(e => Subscribed)
-                //.Throttle(TimeSpan.FromSeconds(1))
-                .Subscribe(PriceChanged);
-        }
-
-        public void PriceChanged(EventPattern<PriceChangedEventArgs> e)
-        {
-            var displayRate = DisplayStockPrices.First(
-                rate => rate.Symbol == e.EventArgs.Price.Symbol);
-
-            if (displayRate != null)
-                displayRate.Update(e.EventArgs.Price);
-        }
-
-
-        private void GetLatestPrices()
-        {
-            DisplayStockPrices = new BindingList<DisplayStockPrice>();
-            var currentRates = _service.GetFullCurrentPrices();
-            foreach (var latestRate in currentRates)
-            {
-                var displayRate = DisplayStockPrice.Create(latestRate);
-                DisplayStockPrices.Add(displayRate);
-            }
-        }
-
-        private const string SubscribedPropertyName = "Subscribed";
-        private bool _subscribed = false;
-
-        public bool Subscribed
-        {
-            get { return _subscribed; }
-            set
-            {
-                if (_subscribed == value) return;
-                _subscribed = value;
-                RaisePropertyChanged(SubscribedPropertyName);
-            }
-        }
-
-        private const string ServiceRunningPropertyName = "ServiceRunning";
-        private bool _serviceRunning;
-
-        public bool ServiceRunning
-        {
-            get { return _serviceRunning; }
-            set
-            {
-                if (_serviceRunning == value) return;
-                _serviceRunning = value;
-                RaisePropertyChanged(ServiceRunningPropertyName);
-            }
-        }
-
-        private void ServiceRunningCommandExecute()
-        {
-            if (_service.IsRunning)
-            {
-                _service.Stop();
-                ServiceRunning = false;
-            }
-            else
-            {
-                _service.Start();
-                ServiceRunning = true;
-            }
-        }
-
-        private void SubscriptionCommandExecute()
-        {
-            //toggle subscribed
-            Subscribed = !Subscribed;
-        }
-    }
-}
\ No newline at end of file
--- a/MetroWpf/Stocks.Service/StocksService.cs	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/Stocks.Service/StocksService.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -130,7 +130,7 @@
                     continue;
                 }
 
-                if (!localPrice.Equals(webPrice))
+                if (localPrice.CurrentPrice != webPrice.CurrentPrice)
                     UpdateLocalPrice(webPrice, localPrice);
             }
         }
--- a/MetroWpf/Stocks.UI/App.xaml	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-<Application x:Class="Stocks.UI.App"
-             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
-             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
-             xmlns:local="clr-namespace:Stocks.UI" 
-             mc:Ignorable="d">
-    <Application.Resources>
-        <ResourceDictionary>
-            <!--Global IoC Locator-->
-            <local:Locator x:Key="Locator"
-                         d:IsDataSource="True" />
-        </ResourceDictionary>
-    </Application.Resources>
-</Application>
--- a/MetroWpf/Stocks.UI/App.xaml.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Linq;
-using System.Windows;
-
-namespace Stocks.UI
-{
-    /// <summary>
-    /// Interaction logic for App.xaml
-    /// </summary>
-    public partial class App : Application
-    {
-    }
-}
--- a/MetroWpf/Stocks.UI/Converters/DeltaToIconConverter.cs	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/Stocks.UI/Converters/DeltaToIconConverter.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -17,15 +17,15 @@
 			
 			try
 			{
-        delta = (decimal) value;
-        {
-          if (delta > 0)
-            file = "UP";
-          else if (delta < 0)
-            file = "DOWN";
-          else
-            file = "LEVEL";
-        }
+		delta = (decimal) value;
+		{
+		  if (delta > 0)
+			file = "UP";
+		  else if (delta < 0)
+			file = "DOWN";
+		  else
+			file = "LEVEL";
+		}
 			}
 			finally
 			{
--- a/MetroWpf/Stocks.UI/DisplayStockPrice.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,90 +0,0 @@
-using GalaSoft.MvvmLight;
-using Stocks.Common.Models;
-
-namespace Stocks.UI
-{
-    public class DisplayStockPrice : ObservableObject
-    {
-        public static DisplayStockPrice Create(Price price)
-        {
-            return new DisplayStockPrice()
-                       {
-                           Symbol = price.Symbol,
-                           CurrentPrice = price.CurrentPrice,
-                           PreviousPrice = price.PreviousPrice
-                       };
-        }
-
-        public void Update(Price price)
-        {
-            Symbol = price.Symbol;
-            CurrentPrice = price.CurrentPrice;
-            PreviousPrice = price.PreviousPrice;
-        }
-
-        public const string SymbolPropertyName = "Symbol";
-        private string _symbol;
-        public string Symbol
-        {
-            get { return _symbol; }
-            private set
-            {
-                if (_symbol == value) return;
-                _symbol = value;
-                RaisePropertyChanged(SymbolPropertyName);
-            }
-        }
-
-        public const string CompanyNamePropertyName = "CompanyName";
-        private string _companyName;
-        public string CompanyName
-        {
-            get { return _companyName; }
-            private set
-            {
-                if (_companyName == value) return;
-                _companyName = value;
-                RaisePropertyChanged(CompanyNamePropertyName);
-            }
-        }
-
-        public const string CurrentPricePropertyName = "CurrentPrice";
-        private decimal _currentPrice = 0;
-        public decimal CurrentPrice
-        {
-            get { return _currentPrice; }
-            private set
-            {
-                if (_currentPrice == value) return;
-                _currentPrice = value;
-                RaisePropertyChanged(CurrentPricePropertyName);
-            }
-        }
-
-        public const string PreviousPricePropertyName = "PreviousPrice";
-        private decimal _previousPrice = 0;
-        public decimal PreviousPrice
-        {
-            get { return _previousPrice; }
-            private set
-            {
-                if (_previousPrice == value) return;
-                _previousPrice = value;
-                RaisePropertyChanged(PreviousPricePropertyName);
-            }
-        }
-
-        public const string DeltaPropertyName = "Delta";
-        private decimal _delta = 0;
-        public decimal Delta
-        {
-            get { return _delta; }
-            private set
-            {
-                if (_delta == value) return;
-                _delta = value;
-                RaisePropertyChanged(DeltaPropertyName);
-            }
-        }
-    }
-}
Binary file MetroWpf/Stocks.UI/Images/DOWN.png has changed
Binary file MetroWpf/Stocks.UI/Images/LEVEL.png has changed
Binary file MetroWpf/Stocks.UI/Images/UNK.png has changed
Binary file MetroWpf/Stocks.UI/Images/UP.png has changed
--- a/MetroWpf/Stocks.UI/Locator.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-using GalaSoft.MvvmLight.Ioc;
-
-namespace Stocks.UI
-{
-    public class Locator
-    {
-        public StocksViewModel StocksViewModel
-        {
-            get { return SimpleIoc.Default.GetInstance<StocksViewModel>(); }
-        }
-    }
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MetroWpf/Stocks.UI/Models/DisplayStockPrice.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -0,0 +1,108 @@
+using System;
+using GalaSoft.MvvmLight;
+using Stocks.Common.Models;
+
+namespace Stocks.UI.Models
+{
+    public class DisplayStockPrice : ObservableObject
+    {
+        public static DisplayStockPrice Create(Price price)
+        {
+            return new DisplayStockPrice()
+                       {
+                           CompanyName =  price.CompanyName,
+                           Symbol = price.Symbol,
+                           CurrentPrice = price.CurrentPrice,
+                           PreviousPrice = price.PreviousPrice,
+                           Timestamp = DateTime.Now
+                       };
+        }
+
+        public void Update(Price price)
+        {
+            Symbol = price.Symbol;
+            CurrentPrice = price.CurrentPrice;
+            PreviousPrice = price.PreviousPrice;
+            Delta = price.CurrentPrice - price.PreviousPrice;
+            Timestamp = DateTime.Now;
+        }
+
+        public const string SymbolPropertyName = "Symbol";
+        private string _symbol;
+        public string Symbol
+        {
+            get { return _symbol; }
+            private set
+            {
+                if (_symbol == value) return;
+                _symbol = value;
+                RaisePropertyChanged(SymbolPropertyName);
+            }
+        }
+
+        public const string CompanyNamePropertyName = "CompanyName";
+        private string _companyName;
+        public string CompanyName
+        {
+            get { return _companyName; }
+            private set
+            {
+                if (_companyName == value) return;
+                _companyName = value;
+                RaisePropertyChanged(CompanyNamePropertyName);
+            }
+        }
+
+        public const string CurrentPricePropertyName = "CurrentPrice";
+        private decimal _currentPrice = 0;
+        public decimal CurrentPrice
+        {
+            get { return _currentPrice; }
+            private set
+            {
+                if (_currentPrice == value) return;
+                _currentPrice = value;
+                RaisePropertyChanged(CurrentPricePropertyName);
+            }
+        }
+
+        public const string PreviousPricePropertyName = "PreviousPrice";
+        private decimal _previousPrice = 0;
+        public decimal PreviousPrice
+        {
+            get { return _previousPrice; }
+            private set
+            {
+                if (_previousPrice == value) return;
+                _previousPrice = value;
+                RaisePropertyChanged(PreviousPricePropertyName);
+            }
+        }
+
+        public const string DeltaPropertyName = "Delta";
+        private decimal _delta = 0;
+        public decimal Delta
+        {
+            get { return _delta; }
+            private set
+            {
+                if (_delta == value) return;
+                _delta = value;
+                RaisePropertyChanged(DeltaPropertyName);
+            }
+        }
+
+        public const string TimestampPropertyName = "Timestamp";
+        private DateTime _timestamp = DateTime.MinValue;
+        public DateTime Timestamp
+        {
+            get { return _timestamp; }
+            private set
+            {
+                if (_timestamp == value) return;
+                _timestamp = value;
+                RaisePropertyChanged(TimestampPropertyName);
+            }
+        }
+    }
+}
--- a/MetroWpf/Stocks.UI/Properties/AssemblyInfo.cs	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/Stocks.UI/Properties/AssemblyInfo.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -1,8 +1,6 @@
 using System.Reflection;
-using System.Resources;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
-using System.Windows;
 
 // General Information about an assembly is controlled through the following 
 // set of attributes. Change these attribute values to modify the information
@@ -21,25 +19,8 @@
 // COM, set the ComVisible attribute to true on that type.
 [assembly: ComVisible(false)]
 
-//In order to begin building localizable applications, set 
-//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
-//inside a <PropertyGroup>.  For example, if you are using US english
-//in your source files, set the <UICulture> to en-US.  Then uncomment
-//the NeutralResourceLanguage attribute below.  Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
-    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
-    //(used if a resource is not found in the page, 
-    // or application resource dictionaries)
-    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
-    //(used if a resource is not found in the page, 
-    // app, or any theme specific resource dictionaries)
-)]
-
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("2e0dc051-c58e-4f51-b9c0-704a1994c326")]
 
 // Version information for an assembly consists of the following four values:
 //
--- a/MetroWpf/Stocks.UI/Properties/Resources.Designer.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:4.0.30319.261
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace Stocks.UI.Properties
-{
-
-
-    /// <summary>
-    ///   A strongly-typed resource class, for looking up localized strings, etc.
-    /// </summary>
-    // This class was auto-generated by the StronglyTypedResourceBuilder
-    // class via a tool like ResGen or Visual Studio.
-    // To add or remove a member, edit your .ResX file then rerun ResGen
-    // with the /str option, or rebuild your VS project.
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    internal class Resources
-    {
-
-        private static global::System.Resources.ResourceManager resourceMan;
-
-        private static global::System.Globalization.CultureInfo resourceCulture;
-
-        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
-        internal Resources()
-        {
-        }
-
-        /// <summary>
-        ///   Returns the cached ResourceManager instance used by this class.
-        /// </summary>
-        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Resources.ResourceManager ResourceManager
-        {
-            get
-            {
-                if ((resourceMan == null))
-                {
-                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Stocks.UI.Properties.Resources", typeof(Resources).Assembly);
-                    resourceMan = temp;
-                }
-                return resourceMan;
-            }
-        }
-
-        /// <summary>
-        ///   Overrides the current thread's CurrentUICulture property for all
-        ///   resource lookups using this strongly typed resource class.
-        /// </summary>
-        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Globalization.CultureInfo Culture
-        {
-            get
-            {
-                return resourceCulture;
-            }
-            set
-            {
-                resourceCulture = value;
-            }
-        }
-    }
-}
--- a/MetroWpf/Stocks.UI/Properties/Resources.resx	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-</root>
\ No newline at end of file
--- a/MetroWpf/Stocks.UI/Properties/Settings.Designer.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:4.0.30319.261
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace Stocks.UI.Properties
-{
-
-
-    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
-    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
-    {
-
-        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
-        public static Settings Default
-        {
-            get
-            {
-                return defaultInstance;
-            }
-        }
-    }
-}
--- a/MetroWpf/Stocks.UI/Properties/Settings.settings	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
-  <Profiles>
-    <Profile Name="(Default)" />
-  </Profiles>
-  <Settings />
-</SettingsFile>
\ No newline at end of file
--- a/MetroWpf/Stocks.UI/Stocks.UI.csproj	Tue Mar 20 15:07:49 2012 +0000
+++ b/MetroWpf/Stocks.UI/Stocks.UI.csproj	Tue Mar 20 16:53:29 2012 +0000
@@ -2,22 +2,18 @@
 <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>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <ProductVersion>8.0.30703</ProductVersion>
     <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{63E512BA-D038-4672-9C02-85DD49744E0F}</ProjectGuid>
-    <OutputType>WinExe</OutputType>
+    <ProjectGuid>{BF20711D-4863-4FD3-9B6C-42D4E677D85C}</ProjectGuid>
+    <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>Stocks.UI</RootNamespace>
     <AssemblyName>Stocks.UI</AssemblyName>
     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-    <TargetFrameworkProfile>Client</TargetFrameworkProfile>
     <FileAlignment>512</FileAlignment>
-    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
-    <WarningLevel>4</WarningLevel>
   </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
-    <PlatformTarget>x86</PlatformTarget>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
@@ -26,8 +22,7 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
-    <PlatformTarget>x86</PlatformTarget>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>
     <Optimize>true</Optimize>
     <OutputPath>bin\Release\</OutputPath>
@@ -36,80 +31,50 @@
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <ItemGroup>
-    <Reference Include="GalaSoft.MvvmLight.Extras.WPF4">
-      <HintPath>..\Libs\MvvmLight.Extras.4.0.0\GalaSoft.MvvmLight.Extras.WPF4.dll</HintPath>
-    </Reference>
     <Reference Include="GalaSoft.MvvmLight.WPF4">
       <HintPath>..\Libs\MvvmLight.4.0.0\GalaSoft.MvvmLight.WPF4.dll</HintPath>
     </Reference>
-    <Reference Include="Microsoft.Practices.ServiceLocation">
-      <HintPath>..\Libs\MvvmLight.Extras.4.0.0\Microsoft.Practices.ServiceLocation.dll</HintPath>
-    </Reference>
+    <Reference Include="PresentationCore" />
+    <Reference Include="PresentationFramework" />
     <Reference Include="System" />
+    <Reference Include="System.Core" />
     <Reference Include="System.Reactive">
       <HintPath>..\Libs\Rx-Main.1.0.11226\lib\Net4\System.Reactive.dll</HintPath>
     </Reference>
-    <Reference Include="System.Windows.Interactivity">
-      <HintPath>..\Libs\System.Windows.Interactivity\System.Windows.Interactivity.dll</HintPath>
-    </Reference>
+    <Reference Include="System.Xaml" />
     <Reference Include="System.Xml" />
-    <Reference Include="System.Core" />
-    <Reference Include="System.Xaml">
-      <RequiredTargetFramework>4.0</RequiredTargetFramework>
-    </Reference>
     <Reference Include="WindowsBase" />
-    <Reference Include="PresentationCore" />
-    <Reference Include="PresentationFramework" />
   </ItemGroup>
   <ItemGroup>
-    <ApplicationDefinition Include="App.xaml">
-      <Generator>MSBuild:Compile</Generator>
-      <SubType>Designer</SubType>
-    </ApplicationDefinition>
     <Compile Include="Converters\AbsoluteNumberConverter.cs" />
     <Compile Include="Converters\BoolToServiceRunningTextConverter.cs" />
     <Compile Include="Converters\BoolToSubscribedTextConverter.cs" />
     <Compile Include="Converters\DateTimeToTimeConverter.cs" />
     <Compile Include="Converters\DeltaToIconConverter.cs" />
-    <Compile Include="DisplayStockPrice.cs" />
-    <Compile Include="Locator.cs" />
-    <Compile Include="StocksViewModel.cs" />
-    <Page Include="StocksView.xaml">
-      <Generator>MSBuild:Compile</Generator>
-      <SubType>Designer</SubType>
-    </Page>
-    <Compile Include="App.xaml.cs">
-      <DependentUpon>App.xaml</DependentUpon>
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="StocksView.xaml.cs">
+    <Compile Include="Models\DisplayStockPrice.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="ViewModels\StocksViewModel.cs" />
+    <Compile Include="Views\StocksView.xaml.cs">
       <DependentUpon>StocksView.xaml</DependentUpon>
-      <SubType>Code</SubType>
     </Compile>
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="Properties\AssemblyInfo.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="Properties\Resources.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DesignTime>True</DesignTime>
-      <DependentUpon>Resources.resx</DependentUpon>
-    </Compile>
-    <Compile Include="Properties\Settings.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Settings.settings</DependentUpon>
-      <DesignTimeSharedInput>True</DesignTimeSharedInput>
-    </Compile>
-    <EmbeddedResource Include="Properties\Resources.resx">
-      <Generator>ResXFileCodeGenerator</Generator>
-      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
-    </EmbeddedResource>
-    <None Include="Properties\Settings.settings">
-      <Generator>SettingsSingleFileGenerator</Generator>
-      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
-    </None>
-    <AppDesigner Include="Properties\" />
+    <Resource Include="Images\DOWN.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\LEVEL.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\UNK.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\UP.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Page Include="Views\StocksView.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\Stocks.Common\Stocks.Common.csproj">
--- a/MetroWpf/Stocks.UI/StocksView.xaml	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +0,0 @@
-<UserControl x:Class="Stocks.UI.StocksView"
-             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
-             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
-             xmlns:Converters="clr-namespace:Stocks.UI.Converters" 
-             mc:Ignorable="d" 
-             d:DesignHeight="100" d:DesignWidth="600"
-             d:DataContext="{Binding StocksViewModel, Source={StaticResource Locator}}">
-
-    <Grid x:Name="LayoutRoot">
-        <Grid.RowDefinitions>
-            <RowDefinition Height="60" />
-            <RowDefinition Height="20" />
-            <RowDefinition Height="280" />
-            <RowDefinition Height="180" />
-        </Grid.RowDefinitions>
-        <Grid.Resources>
-            <Converters:BoolToServiceRunningTextConverter x:Key="BoolToServiceRunningTextConverter" />
-            <Converters:BoolToSubscribedTextConverter x:Key="BoolToSubscribedTextConverter" />
-            <Converters:DeltaToIconConverter x:Key="DeltaToIconConverter" />
-            <Converters:AbsoluteNumberConverter x:Key="AbsoluteNumberConverter" />
-            <!--<Converters:DateTimeToTimeConverter x:Key="DateTimeToTimeConverter" />-->
-        </Grid.Resources>
-
-        <StackPanel Grid.Row="0" Orientation="Horizontal">
-            <Button x:Name="btnServiceRunning"
-              Width="100"
-              Height="30"
-              HorizontalAlignment="Left" 
-              Content="{Binding Path=ServiceRunning, Converter={StaticResource BoolToServiceRunningTextConverter}}" 
-              Command="{Binding Path=ServiceCommand, Mode=TwoWay}"
-              Margin="5,0,0,0"/>
-            <Button x:Name="btnSubscribe"
-              Width="100"
-              Height="30"
-              Margin="10,0,0,0"
-              HorizontalAlignment="Left" 
-              Content="{Binding Path=Subscribed, Converter={StaticResource BoolToSubscribedTextConverter}}" 
-              Command="{Binding Path=SubscriptionCommand, Mode=TwoWay}" />
-        </StackPanel>
-
-        <StackPanel Grid.Row="1" Orientation="Horizontal">
-            <TextBlock Text="Company" Width="170" Margin="5,0,0,0" />
-            <TextBlock Text="Price" Width="100" />
-            <TextBlock Text="Previous" Width="100" />
-            <TextBlock Text="Change" Width="105" />
-            <TextBlock Text="Time" Width="105" />
-        </StackPanel>
-        <ListBox x:Name="lbStockPrices" 
-             ItemsSource="{Binding Path=DisplayStockPrices}" 
-             BorderThickness="0" FontFamily="Segoe UI"
-             Grid.Row="2">
-            <ListBox.ItemTemplate>
-                <DataTemplate>
-                    <StackPanel Orientation="Horizontal" Height="25">
-                        <TextBlock Text="{Binding CompanyName}" Width="125" FontSize="15" Margin="10,0,0,0"/>
-                        <TextBlock Text="{Binding Symbol}" Width="45" FontSize="15" Margin="10,0,0,0"/>
-                        <TextBlock Text="{Binding CurrentPrice}" Width="100" FontSize="15" />
-                        <TextBlock Text="{Binding PreviousPrice}" Width="100" FontSize="15" />
-                        <Image Source="{Binding Delta, Converter={StaticResource DeltaToIconConverter}}" Width="20" />
-                        <TextBlock Text="{Binding Delta, Converter={StaticResource AbsoluteNumberConverter}}" Width="85" FontSize="15" />
-                        <!--<TextBlock Text="{Binding Timestamp, Converter={StaticResource DateTimeToTimeConverter}}" Width="100" FontSize="15" />-->
-                    </StackPanel>
-                </DataTemplate>
-            </ListBox.ItemTemplate>
-        </ListBox>
-    </Grid>
-    </UserControl>
\ No newline at end of file
--- a/MetroWpf/Stocks.UI/StocksView.xaml.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-using System.Windows.Controls;
-
-namespace Stocks.UI
-{
-    /// <summary>
-    /// Interaction logic for StocksView.xaml
-    /// </summary>
-    public partial class StocksView : UserControl
-    {
-        public StocksView()
-        {
-            InitializeComponent();
-        }
-    }
-}
--- a/MetroWpf/Stocks.UI/StocksViewModel.cs	Tue Mar 20 15:07:49 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,107 +0,0 @@
-using System;
-using System.ComponentModel;
-using System.Linq;
-using System.Reactive;
-using System.Reactive.Linq;
-using System.Windows.Input;
-using GalaSoft.MvvmLight;
-using GalaSoft.MvvmLight.Command;
-using Stocks.Common;
-using Stocks.Common.Events;
-
-namespace Stocks.UI
-{
-    public class StocksViewModel : ViewModelBase
-    {
-        private readonly IStocksService _service;
-
-        public BindingList<DisplayStockPrice> DisplayStockPrices { get; set; }
-        public ICommand ServiceCommand { get; set; }
-        public ICommand SubscriptionCommand { get; set; }
-
-        public StocksViewModel(IStocksService service)
-        {
-            _service = service;
-            GetLatestPrices();
-
-            SubscriptionCommand = new RelayCommand(SubscriptionCommandExecute);
-            ServiceCommand = new RelayCommand(ServiceRunningCommandExecute);
-
-            var priceUpdates = Observable.FromEventPattern<PriceChangedEventArgs>(
-                _service, "PriceChanged");
-
-            priceUpdates.Where(e => Subscribed)
-                //.Throttle(TimeSpan.FromSeconds(1))
-                .Subscribe(PriceChanged);
-        }
-
-        public void PriceChanged(EventPattern<PriceChangedEventArgs> e)
-        {
-            var displayRate = DisplayStockPrices.First(
-                rate => rate.Symbol == e.EventArgs.Price.Symbol);
-
-            if (displayRate != null)
-                displayRate.Update(e.EventArgs.Price);
-        }
-
-
-        private void GetLatestPrices()
-        {
-            DisplayStockPrices = new BindingList<DisplayStockPrice>();
-            var currentRates = _service.GetFullCurrentPrices();
-            foreach (var latestRate in currentRates)
-            {
-                var displayRate = DisplayStockPrice.Create(latestRate);
-                DisplayStockPrices.Add(displayRate);
-            }
-        }
-
-        private const string SubscribedPropertyName = "Subscribed";
-        private bool _subscribed = false;
-
-        public bool Subscribed
-        {
-            get { return _subscribed; }
-            set
-            {
-                if (_subscribed == value) return;
-                _subscribed = value;
-                RaisePropertyChanged(SubscribedPropertyName);
-            }
-        }
-
-        private const string ServiceRunningPropertyName = "ServiceRunning";
-        private bool _serviceRunning;
-
-        public bool ServiceRunning
-        {
-            get { return _serviceRunning; }
-            set
-            {
-                if (_serviceRunning == value) return;
-                _serviceRunning = value;
-                RaisePropertyChanged(ServiceRunningPropertyName);
-            }
-        }
-
-        private void ServiceRunningCommandExecute()
-        {
-            if (_service.IsRunning)
-            {
-                _service.Stop();
-                ServiceRunning = false;
-            }
-            else
-            {
-                _service.Start();
-                ServiceRunning = true;
-            }
-        }
-
-        private void SubscriptionCommandExecute()
-        {
-            //toggle subscribed
-            Subscribed = !Subscribed;
-        }
-    }
-}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MetroWpf/Stocks.UI/ViewModels/StocksViewModel.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -0,0 +1,109 @@
+using System;
+using System.ComponentModel;
+using System.Linq;
+using System.Reactive;
+using System.Reactive.Linq;
+using System.Windows.Input;
+using GalaSoft.MvvmLight;
+using GalaSoft.MvvmLight.Command;
+using Stocks.Common;
+using Stocks.Common.Events;
+using Stocks.UI.Models;
+
+namespace Stocks.UI.ViewModels
+{
+    public class StocksViewModel : ViewModelBase
+    {
+        private readonly IStocksService _service;
+
+        public BindingList<DisplayStockPrice> DisplayStockPrices { get; set; }
+        public ICommand ServiceCommand { get; set; }
+        public ICommand SubscriptionCommand { get; set; }
+
+        public StocksViewModel(IStocksService service)
+        {
+            _service = service;
+            GetLatestPrices();
+
+            SubscriptionCommand = new RelayCommand(SubscriptionCommandExecute);
+            ServiceCommand = new RelayCommand(ServiceRunningCommandExecute);
+
+            var priceUpdates = Observable.FromEventPattern<PriceChangedEventArgs>(
+                _service, 
+                "PriceChanged");
+
+            priceUpdates.Where(e => Subscribed)
+                //.Throttle(TimeSpan.FromSeconds(1))
+                .Subscribe(PriceChanged);
+        }
+
+        public void PriceChanged(EventPattern<PriceChangedEventArgs> e)
+        {
+            var displayRate = DisplayStockPrices.First(
+                rate => rate.Symbol == e.EventArgs.Price.Symbol);
+
+            if (displayRate != null)
+                displayRate.Update(e.EventArgs.Price);
+        }
+
+
+        private void GetLatestPrices()
+        {
+            DisplayStockPrices = new BindingList<DisplayStockPrice>();
+            var currentRates = _service.GetFullCurrentPrices();
+            foreach (var latestRate in currentRates)
+            {
+                var displayRate = DisplayStockPrice.Create(latestRate);
+                DisplayStockPrices.Add(displayRate);
+            }
+        }
+
+        private const string SubscribedPropertyName = "Subscribed";
+        private bool _subscribed = false;
+
+        public bool Subscribed
+        {
+            get { return _subscribed; }
+            set
+            {
+                if (_subscribed == value) return;
+                _subscribed = value;
+                RaisePropertyChanged(SubscribedPropertyName);
+            }
+        }
+
+        private const string ServiceRunningPropertyName = "ServiceRunning";
+        private bool _serviceRunning;
+
+        public bool ServiceRunning
+        {
+            get { return _serviceRunning; }
+            set
+            {
+                if (_serviceRunning == value) return;
+                _serviceRunning = value;
+                RaisePropertyChanged(ServiceRunningPropertyName);
+            }
+        }
+
+        private void ServiceRunningCommandExecute()
+        {
+            if (_service.IsRunning)
+            {
+                _service.Stop();
+                ServiceRunning = false;
+            }
+            else
+            {
+                _service.Start();
+                ServiceRunning = true;
+            }
+        }
+
+        private void SubscriptionCommandExecute()
+        {
+            //toggle subscribed
+            Subscribed = !Subscribed;
+        }
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MetroWpf/Stocks.UI/Views/StocksView.xaml	Tue Mar 20 16:53:29 2012 +0000
@@ -0,0 +1,94 @@
+<UserControl x:Class="Stocks.UI.Views.StocksView"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:Converters="clr-namespace:Stocks.UI.Converters"
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+             d:DesignHeight="100"
+             d:DesignWidth="600"
+             DataContext="d:DesignInstance vm:StocksViewModel"
+             mc:Ignorable="d">
+
+    <Grid x:Name="LayoutRoot">
+        <Grid.RowDefinitions>
+            <RowDefinition Height="60" />
+            <RowDefinition Height="20" />
+            <RowDefinition Height="400" />
+            <RowDefinition Height="180" />
+        </Grid.RowDefinitions>
+        <Grid.Resources>
+            <Converters:BoolToServiceRunningTextConverter x:Key="BoolToServiceRunningTextConverter" />
+            <Converters:BoolToSubscribedTextConverter x:Key="BoolToSubscribedTextConverter" />
+            <Converters:DeltaToIconConverter x:Key="DeltaToIconConverter" />
+            <Converters:AbsoluteNumberConverter x:Key="AbsoluteNumberConverter" />
+            <Converters:DateTimeToTimeConverter x:Key="DateTimeToTimeConverter" />
+        </Grid.Resources>
+
+        <StackPanel Grid.Row="0" Orientation="Horizontal">
+            <Button x:Name="btnServiceRunning"
+                    Width="100"
+                    Height="30"
+                    Margin="5,0,0,0"
+                    HorizontalAlignment="Left"
+                    Command="{Binding ServiceCommand,
+                                      Mode=TwoWay}"
+                    Content="{Binding ServiceRunning,
+                                      Converter={StaticResource BoolToServiceRunningTextConverter}}" />
+            <Button x:Name="btnSubscribe"
+                    Width="100"
+                    Height="30"
+                    Margin="10,0,0,0"
+                    HorizontalAlignment="Left"
+                    Command="{Binding SubscriptionCommand,
+                                      Mode=TwoWay}"
+                    Content="{Binding Subscribed,
+                                      Converter={StaticResource BoolToSubscribedTextConverter}}" />
+        </StackPanel>
+
+        <StackPanel Grid.Row="1" Orientation="Horizontal">
+            <TextBlock Width="260"
+                       Margin="5,0,0,0"
+                       Text="Company" />
+            <TextBlock Width="80" Text="Symbol" />
+            <TextBlock Width="100" Text="Price" />
+            <TextBlock Width="100" Text="Previous" />
+            <TextBlock Width="105" Text="Change" />
+        </StackPanel>
+        <ListBox x:Name="lbStockPrices"
+                 Grid.Row="2"
+                 BorderThickness="0"
+                 FontFamily="Segoe UI"
+                 ItemsSource="{Binding Path=DisplayStockPrices}">
+            <ListBox.ItemTemplate>
+                <DataTemplate>
+                    <StackPanel Orientation="Horizontal">
+                        <TextBlock Width="263"
+                                   Margin="2,0,0,0"
+                                   FontSize="15"
+                                   Text="{Binding CompanyName}" />
+                        <TextBlock Width="80"
+                                   FontSize="15"
+                                   Text="{Binding Symbol}" />
+                        <TextBlock Width="100"
+                                   FontSize="15"
+                                   Text="{Binding CurrentPrice}" />
+                        <TextBlock Width="100"
+                                   FontSize="15"
+                                   Text="{Binding PreviousPrice}" />
+                        <Image Width="20" Source="{Binding Delta, Converter={StaticResource DeltaToIconConverter}}" />
+                        <TextBlock Width="85"
+                                   FontSize="15"
+                                   Text="{Binding Delta,
+                                                  Converter={StaticResource AbsoluteNumberConverter}}" />
+                        <!--
+                            <TextBlock Width="85"
+                            FontSize="15"
+                            Text="{Binding Timestamp,
+                            Converter={StaticResource DateTimeToTimeConverter}}" />
+                        -->
+                    </StackPanel>
+                </DataTemplate>
+            </ListBox.ItemTemplate>
+        </ListBox>
+    </Grid>
+</UserControl>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MetroWpf/Stocks.UI/Views/StocksView.xaml.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -0,0 +1,15 @@
+using System.Windows.Controls;
+
+namespace Stocks.UI.Views
+{
+    /// <summary>
+    /// Interaction logic for StocksView.xaml
+    /// </summary>
+    public partial class StocksView : UserControl
+    {
+        public StocksView()
+        {
+            InitializeComponent();
+        }
+    }
+}
--- a/Stocks/Stocks.Service/App.config	Tue Mar 20 15:07:49 2012 +0000
+++ b/Stocks/Stocks.Service/App.config	Tue Mar 20 16:53:29 2012 +0000
@@ -1,18 +1,18 @@
 <configuration>
-  <configSections>
-    <sectionGroup name="common">
-      <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
-    </sectionGroup>
-  </configSections>
+    <configSections>
+        <sectionGroup name="common">
+            <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
+        </sectionGroup>
+    </configSections>
 
-  <common>
-    <logging>
-      <factoryAdapter type="Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter, Common.Logging">
-        <arg key="level" value="DEBUG" />
-        <arg key="showLogName" value="true" />
-        <arg key="showDataTime" value="true" />
-        <arg key="dateTimeFormat" value="yyyy/MM/dd HH:mm:ss:fff" />
-      </factoryAdapter>
-    </logging>
-  </common>
-</configuration>
+    <common>
+        <logging>
+            <factoryAdapter type="Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter, Common.Logging">
+                <arg key="level" value="DEBUG" />
+                <arg key="showLogName" value="true" />
+                <arg key="showDataTime" value="true" />
+                <arg key="dateTimeFormat" value="yyyy/MM/dd HH:mm:ss:fff" />
+            </factoryAdapter>
+        </logging>
+    </common>
+</configuration>
\ No newline at end of file
--- a/Stocks/Stocks.Service/AssemblyInit.cs	Tue Mar 20 15:07:49 2012 +0000
+++ b/Stocks/Stocks.Service/AssemblyInit.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -1,23 +1,23 @@
 using System.Diagnostics;
+using System.Diagnostics.CodeAnalysis;
 using System.Reflection;
-using Ninject;
 using NLog;
 
 namespace Stocks.Service
 {
-	internal class AssemblyInit
-	{
-		private static Logger logger = LogManager.GetCurrentClassLogger();
+    internal class AssemblyInit
+    {
+        private static readonly Logger logger = LogManager.GetCurrentClassLogger();
 
-    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")]
-    public AssemblyInit ()
-		{	
-			var fvi = FileVersionInfo.GetVersionInfo(
-				Assembly.GetExecutingAssembly().Location);
+        [SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands")]
+        public AssemblyInit()
+        {
+            FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(
+                Assembly.GetExecutingAssembly().Location);
 
-			logger.Info("Init: {0} {1} ",
-				Assembly.GetExecutingAssembly().GetName(),
-				fvi.ProductVersion);
-		}
-	}
-}
+            logger.Info("Init: {0} {1} ",
+                        Assembly.GetExecutingAssembly().GetName(),
+                        fvi.ProductVersion);
+        }
+    }
+}
\ No newline at end of file
--- a/Stocks/Stocks.Service/NLog.config	Tue Mar 20 15:07:49 2012 +0000
+++ b/Stocks/Stocks.Service/NLog.config	Tue Mar 20 16:53:29 2012 +0000
@@ -1,17 +1,17 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
-      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<?xml version="1.0" encoding="utf-8"?>
 
-  <!-- 
+<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+    <!-- 
   See http://nlog-project.org/wiki/Configuration_file 
   for information on customizing logging rules and outputs.
    -->
-  <targets>
-    <target xsi:type="File" name="textFile" fileName="${basedir}/logs/${shortdate}.log"
-            layout="${longdate} ${uppercase:${level}} ${message}" />
-  </targets>
+    <targets>
+        <target xsi:type="File" name="textFile" fileName="${basedir}/logs/${shortdate}.log"
+                layout="${longdate} ${uppercase:${level}} ${message}" />
+    </targets>
 
-  <rules>
-    <logger name="*" minlevel="Trace" writeTo="textFile" />
-  </rules>
+    <rules>
+        <logger name="*" minlevel="Trace" writeTo="textFile" />
+    </rules>
 </nlog>
\ No newline at end of file
--- a/Stocks/Stocks.Service/NLog.xsd	Tue Mar 20 15:07:49 2012 +0000
+++ b/Stocks/Stocks.Service/NLog.xsd	Tue Mar 20 16:53:29 2012 +0000
@@ -1,2585 +1,3035 @@
 <?xml version="1.0" encoding="utf-8"?>
-<xs:schema id="NLog" targetNamespace="http://www.nlog-project.org/schemas/NLog.xsd" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.nlog-project.org/schemas/NLog.xsd">
-  <xs:element name="nlog" type="NLogConfiguration" />
-  <xs:complexType name="NLogConfiguration">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="extensions" type="NLogExtensions" />
-      <xs:element name="include" type="NLogInclude" />
-      <xs:element name="variable" type="NLogVariable" />
-      <xs:element name="targets" type="NLogTargets" />
-      <xs:element name="rules" type="NLogRules" />
-    </xs:choice>
-    <xs:attribute name="autoReload" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Watch config file for changes and reload automatically.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="internalLogToConsole" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Print internal NLog messages to the console. Default value is: false</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="internalLogToConsoleError" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Print internal NLog messages to the console error output. Default value is: false</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="internalLogFile" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Write internal NLog messages to the specified file.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="internalLogLevel" type="NLogLevel">
-      <xs:annotation>
-        <xs:documentation>Log level threshold for internal log messages. Default value is: Info.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="globalThreshold" type="NLogLevel">
-      <xs:annotation>
-        <xs:documentation>Global log level threshold for application log messages. Messages below this level won't be logged..</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="throwExceptions" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Pass NLog internal exceptions to the application. Default value is: false.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="NLogTargets">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="default-wrapper" type="WrapperTargetBase" />
-      <xs:element name="default-target-parameters" type="Target" />
-      <xs:element name="target" type="Target" />
-      <xs:element name="wrapper-target" type="WrapperTargetBase" />
-      <xs:element name="compound-target" type="CompoundTargetBase" />
-    </xs:choice>
-    <xs:attribute name="async" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Make all targets within this section asynchronous (creates additional threads but the calling thread isn't blocked by any target writes).</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="NLogRules">
-    <xs:sequence minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="logger" type="NLogLoggerRule" />
-    </xs:sequence>
-  </xs:complexType>
-  <xs:complexType name="NLogExtensions">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="add" type="NLogExtensionsAdd" />
-    </xs:choice>
-  </xs:complexType>
-  <xs:complexType name="NLogExtensionsAdd">
-    <xs:attribute name="prefix" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Prefix for targets/layout renderers/filters/conditions loaded from this assembly.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="assemblyFile" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Load NLog extensions from the specified file (*.dll)</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="assembly" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Load NLog extensions from the specified assembly. Assembly name should be fully qualified.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="NLogLoggerRule">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="filters" type="NLogFilters" />
-    </xs:choice>
-    <xs:attribute name="name" use="optional">
-      <xs:annotation>
-        <xs:documentation>Name of the logger. May include '*' character which acts like a wildcard. Allowed forms are: *, Name, *Name, Name* and *Name*</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="levels" type="NLogLevelList">
-      <xs:annotation>
-        <xs:documentation>Comma separated list of levels that this rule matches.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="minlevel" type="NLogLevel">
-      <xs:annotation>
-        <xs:documentation>Minimum level that this rule matches.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="maxlevel" type="NLogLevel">
-      <xs:annotation>
-        <xs:documentation>Maximum level that this rule matches.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="level" type="NLogLevel">
-      <xs:annotation>
-        <xs:documentation>Level that this rule matches.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="writeTo" type="NLogTargetIDList">
-      <xs:annotation>
-        <xs:documentation>Comma separated list of target names.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="final" type="xs:boolean" default="false">
-      <xs:annotation>
-        <xs:documentation>Ignore further rules if this one matches.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="NLogFilters">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="when" type="when" />
-      <xs:element name="whenContains" type="whenContains" />
-      <xs:element name="whenEqual" type="whenEqual" />
-      <xs:element name="whenNotContains" type="whenNotContains" />
-      <xs:element name="whenNotEqual" type="whenNotEqual" />
-    </xs:choice>
-  </xs:complexType>
-  <xs:simpleType name="NLogLevel">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Off" />
-      <xs:enumeration value="Trace" />
-      <xs:enumeration value="Debug" />
-      <xs:enumeration value="Info" />
-      <xs:enumeration value="Warn" />
-      <xs:enumeration value="Error" />
-      <xs:enumeration value="Fatal" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:simpleType name="NLogLevelList">
-    <xs:restriction base="xs:string">
-      <xs:pattern value="(|Trace|Debug|Info|Warn|Error|Fatal)(,(Trace|Debug|Info|Warn|Error|Fatal))*" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="NLogInclude">
-    <xs:attribute name="file" type="SimpleLayoutAttribute" use="required">
-      <xs:annotation>
-        <xs:documentation>Name of the file to be included. The name is relative to the name of the current config file.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="ignoreErrors" type="xs:boolean" use="optional" default="false">
-      <xs:annotation>
-        <xs:documentation>Ignore any errors in the include file.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="NLogVariable">
-    <xs:attribute name="name" type="xs:string" use="required">
-      <xs:annotation>
-        <xs:documentation>Variable name.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="value" type="SimpleLayoutAttribute" use="required">
-      <xs:annotation>
-        <xs:documentation>Variable value.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:simpleType name="NLogTargetIDList">
-    <xs:restriction base="xs:string">
-      <xs:pattern value="(|([a-zA-Z][a-zA-Z0-9_\-]*))(,([a-zA-Z][a-zA-Z0-9_\-]*))*" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="Target" abstract="true"></xs:complexType>
-  <xs:complexType name="TargetRef">
-    <xs:attribute name="name" type="xs:string" use="required" />
-  </xs:complexType>
-  <xs:complexType name="WrapperTargetBase" abstract="true">
-    <xs:complexContent>
-      <xs:extension base="Target">
+
+<xs:schema id="NLog" targetNamespace="http://www.nlog-project.org/schemas/NLog.xsd" elementFormDefault="qualified"
+           xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.nlog-project.org/schemas/NLog.xsd">
+    <xs:element name="nlog" type="NLogConfiguration" />
+    <xs:complexType name="NLogConfiguration">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+            <xs:element name="extensions" type="NLogExtensions" />
+            <xs:element name="include" type="NLogInclude" />
+            <xs:element name="variable" type="NLogVariable" />
+            <xs:element name="targets" type="NLogTargets" />
+            <xs:element name="rules" type="NLogRules" />
+        </xs:choice>
+        <xs:attribute name="autoReload" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Watch config file for changes and reload automatically.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="internalLogToConsole" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Print internal NLog messages to the console. Default value is: false
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="internalLogToConsoleError" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Print internal NLog messages to the console error output. Default value is: false
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="internalLogFile" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Write internal NLog messages to the specified file.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="internalLogLevel" type="NLogLevel">
+            <xs:annotation>
+                <xs:documentation>
+                    Log level threshold for internal log messages. Default value is: Info.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="globalThreshold" type="NLogLevel">
+            <xs:annotation>
+                <xs:documentation>
+                    Global log level threshold for application log messages. Messages below this level won't be logged..
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="throwExceptions" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Pass NLog internal exceptions to the application. Default value is: false.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType name="NLogTargets">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+            <xs:element name="default-wrapper" type="WrapperTargetBase" />
+            <xs:element name="default-target-parameters" type="Target" />
+            <xs:element name="target" type="Target" />
+            <xs:element name="wrapper-target" type="WrapperTargetBase" />
+            <xs:element name="compound-target" type="CompoundTargetBase" />
+        </xs:choice>
+        <xs:attribute name="async" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Make all targets within this section asynchronous (creates additional threads but the calling thread isn't blocked by any target writes).
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType name="NLogRules">
+        <xs:sequence minOccurs="0" maxOccurs="unbounded">
+            <xs:element name="logger" type="NLogLoggerRule" />
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="NLogExtensions">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="target" type="Target" minOccurs="1" maxOccurs="1" />
-          <xs:element name="wrapper-target" type="WrapperTargetBase" minOccurs="1" maxOccurs="1" />
-          <xs:element name="compound-target" type="CompoundTargetBase" minOccurs="1" maxOccurs="1" />
-          <xs:element name="target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
-          <xs:element name="wrapper-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
-          <xs:element name="compound-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+            <xs:element name="add" type="NLogExtensionsAdd" />
         </xs:choice>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="CompoundTargetBase" abstract="true">
-    <xs:complexContent>
-      <xs:extension base="Target">
+    </xs:complexType>
+    <xs:complexType name="NLogExtensionsAdd">
+        <xs:attribute name="prefix" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Prefix for targets/layout renderers/filters/conditions loaded from this assembly.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="assemblyFile" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Load NLog extensions from the specified file (*.dll)
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="assembly" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Load NLog extensions from the specified assembly. Assembly name should be fully qualified.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType name="NLogLoggerRule">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="target" type="Target" minOccurs="1" maxOccurs="unbounded" />
-          <xs:element name="wrapper-target" type="WrapperTargetBase" minOccurs="1" maxOccurs="1" />
-          <xs:element name="compound-target" type="CompoundTargetBase" minOccurs="1" maxOccurs="1" />
-          <xs:element name="target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
-          <xs:element name="wrapper-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
-          <xs:element name="compound-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+            <xs:element name="filters" type="NLogFilters" />
         </xs:choice>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="Layout"></xs:complexType>
-  <xs:complexType name="Filter" abstract="true"></xs:complexType>
-  <xs:simpleType name="SimpleLayoutAttribute">
-    <xs:restriction base="xs:string">
-      <xs:pattern value=".*" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:simpleType name="Condition">
-    <xs:restriction base="xs:string">
-      <xs:minLength value="1" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="AsyncWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
+        <xs:attribute name="name" use="optional">
+            <xs:annotation>
+                <xs:documentation>
+                    Name of the logger. May include '*' character which acts like a wildcard. Allowed forms are: *, Name, *Name, Name* and *Name*
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="levels" type="NLogLevelList">
+            <xs:annotation>
+                <xs:documentation>
+                    Comma separated list of levels that this rule matches.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="minlevel" type="NLogLevel">
+            <xs:annotation>
+                <xs:documentation>
+                    Minimum level that this rule matches.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxlevel" type="NLogLevel">
+            <xs:annotation>
+                <xs:documentation>
+                    Maximum level that this rule matches.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="level" type="NLogLevel">
+            <xs:annotation>
+                <xs:documentation>
+                    Level that this rule matches.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="writeTo" type="NLogTargetIDList">
+            <xs:annotation>
+                <xs:documentation>
+                    Comma separated list of target names.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="final" type="xs:boolean" default="false">
+            <xs:annotation>
+                <xs:documentation>
+                    Ignore further rules if this one matches.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType name="NLogFilters">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="queueLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="timeToSleepBetweenBatches" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="batchSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="overflowAction" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction" />
+            <xs:element name="when" type="when" />
+            <xs:element name="whenContains" type="whenContains" />
+            <xs:element name="whenEqual" type="whenEqual" />
+            <xs:element name="whenNotContains" type="whenNotContains" />
+            <xs:element name="whenNotEqual" type="whenNotEqual" />
         </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="queueLimit" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Limit on the number of requests in the lazy writer thread request queue.</xs:documentation>
-          </xs:annotation>
+    </xs:complexType>
+    <xs:simpleType name="NLogLevel">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Off" />
+            <xs:enumeration value="Trace" />
+            <xs:enumeration value="Debug" />
+            <xs:enumeration value="Info" />
+            <xs:enumeration value="Warn" />
+            <xs:enumeration value="Error" />
+            <xs:enumeration value="Fatal" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="NLogLevelList">
+        <xs:restriction base="xs:string">
+            <xs:pattern value="(|Trace|Debug|Info|Warn|Error|Fatal)(,(Trace|Debug|Info|Warn|Error|Fatal))*" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="NLogInclude">
+        <xs:attribute name="file" type="SimpleLayoutAttribute" use="required">
+            <xs:annotation>
+                <xs:documentation>
+                    Name of the file to be included. The name is relative to the name of the current config file.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="timeToSleepBetweenBatches" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Time in milliseconds to sleep between batches.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="ignoreErrors" type="xs:boolean" use="optional" default="false">
+            <xs:annotation>
+                <xs:documentation>
+                    Ignore any errors in the include file.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="batchSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Number of log events that should be processed in a batch by the lazy writer thread.</xs:documentation>
-          </xs:annotation>
+    </xs:complexType>
+    <xs:complexType name="NLogVariable">
+        <xs:attribute name="name" type="xs:string" use="required">
+            <xs:annotation>
+                <xs:documentation>Variable name.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="overflowAction" type="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction">
-          <xs:annotation>
-            <xs:documentation>Action to be taken when the lazy writer thread request queue count exceeds the set limit.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="value" type="SimpleLayoutAttribute" use="required">
+            <xs:annotation>
+                <xs:documentation>Variable value.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Grow" />
-      <xs:enumeration value="Discard" />
-      <xs:enumeration value="Block" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="AutoFlushWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="BufferingWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="slidingTimeout" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="flushTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="slidingTimeout" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to use sliding timeout.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="bufferSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Number of log events to be buffered.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="flushTimeout" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Timeout (in milliseconds) after which the contents of buffer will be flushed if there's no write in the specified period of time. Use -1 to disable timed flushes.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="Chainsaw">
-    <xs:complexContent>
-      <xs:extension base="Target">
+    </xs:complexType>
+    <xs:simpleType name="NLogTargetIDList">
+        <xs:restriction base="xs:string">
+            <xs:pattern value="(|([a-zA-Z][a-zA-Z0-9_\-]*))(,([a-zA-Z][a-zA-Z0-9_\-]*))*" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="Target" abstract="true"></xs:complexType>
+    <xs:complexType name="TargetRef">
+        <xs:attribute name="name" type="xs:string" use="required" />
+    </xs:complexType>
+    <xs:complexType name="WrapperTargetBase" abstract="true">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="target" type="Target" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="wrapper-target" type="WrapperTargetBase" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="compound-target" type="CompoundTargetBase" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="wrapper-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="compound-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+                </xs:choice>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="CompoundTargetBase" abstract="true">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="target" type="Target" minOccurs="1" maxOccurs="unbounded" />
+                    <xs:element name="wrapper-target" type="WrapperTargetBase" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="compound-target" type="CompoundTargetBase" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="wrapper-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+                    <xs:element name="compound-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+                </xs:choice>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="Layout"></xs:complexType>
+    <xs:complexType name="Filter" abstract="true"></xs:complexType>
+    <xs:simpleType name="SimpleLayoutAttribute">
+        <xs:restriction base="xs:string">
+            <xs:pattern value=".*" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="Condition">
+        <xs:restriction base="xs:string">
+            <xs:minLength value="1" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="AsyncWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="queueLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="timeToSleepBetweenBatches" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="batchSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="overflowAction" minOccurs="0" maxOccurs="1"
+                                type="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="queueLimit" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Limit on the number of requests in the lazy writer thread request queue.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="timeToSleepBetweenBatches" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Time in milliseconds to sleep between batches.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="batchSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Number of log events that should be processed in a batch by the lazy writer thread.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="overflowAction" type="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action to be taken when the lazy writer thread request queue count exceeds the set limit.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Grow" />
+            <xs:enumeration value="Discard" />
+            <xs:enumeration value="Block" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="AutoFlushWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="BufferingWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="slidingTimeout" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="flushTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="slidingTimeout" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to use sliding timeout.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="bufferSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Number of log events to be buffered.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="flushTimeout" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Timeout (in milliseconds) after which the contents of buffer will be flushed if there's no write in the specified period of time. Use -1 to disable timed flushes.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="Chainsaw">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
+                    <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="appInfo" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="ndcItemSeparator" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="includeNLogData" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
+                    <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="newLine" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to append newline at the end of log message.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Instance of  that is used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action that should be taken if the message is larger than maxMessageSize.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="maxMessageSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Maximum message size in bytes.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="encoding" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Encoding to be used.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="connectionCacheSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Size of the connection cache (number of connections which are kept alive).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="address" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Network address.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="keepConnection" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to keep connection open whenever possible.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeSourceInfo" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include source info (file name and line number) in the information sent over the network.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeCallSite" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include call site (class and method name) in the information sent over the network.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="appInfo" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            AppInfo field. By default it's the friendly name of the current AppDomain.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="ndcItemSeparator" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>NDC item separator.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeNdc" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include  stack contents.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeNLogData" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include NLog-specific extensions to log4j schema.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeMdc" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include  dictionary contents.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="NLog.Targets.NetworkTargetOverflowAction">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Error" />
+            <xs:enumeration value="Split" />
+            <xs:enumeration value="Discard" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="NLog.Targets.NLogViewerParameterInfo">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
-          <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="appInfo" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="ndcItemSeparator" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="includeNLogData" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
-          <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+            <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+            <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
         </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="newLine" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
         <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Instance of  that is used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
-          <xs:annotation>
-            <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="maxMessageSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Maximum message size in bytes.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="encoding" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Encoding to be used.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="connectionCacheSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="address" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Network address.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="keepConnection" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeSourceInfo" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include source info (file name and line number) in the information sent over the network.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeCallSite" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include call site (class and method name) in the information sent over the network.</xs:documentation>
-          </xs:annotation>
+            <xs:annotation>
+                <xs:documentation>
+                    Layout that should be use to calcuate the value for the parameter.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="appInfo" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>AppInfo field. By default it's the friendly name of the current AppDomain.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="ndcItemSeparator" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>NDC item separator.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeNdc" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include  stack contents.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeNLogData" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include NLog-specific extensions to log4j schema.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeMdc" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include  dictionary contents.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="NLog.Targets.NetworkTargetOverflowAction">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Error" />
-      <xs:enumeration value="Split" />
-      <xs:enumeration value="Discard" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="NLog.Targets.NLogViewerParameterInfo">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-    </xs:choice>
-    <xs:attribute name="layout" type="SimpleLayoutAttribute">
-      <xs:annotation>
-        <xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="name" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Viewer parameter name.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="Console">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="error" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-        </xs:choice>
         <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
+            <xs:annotation>
+                <xs:documentation>
+                    Viewer parameter name.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Text to be rendered.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="footer" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Footer.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="header" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Header.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="error" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to send the log messages to the standard error instead of the standard output.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="Database">
-    <xs:complexContent>
-      <xs:extension base="Target">
+    </xs:complexType>
+    <xs:complexType name="Console">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="error" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Text to be rendered.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="footer" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Footer.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="header" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Header.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="error" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to send the log messages to the standard error instead of the standard output.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="Database">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="dbUserName" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="dbProvider" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="useTransactions" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="connectionStringName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="connectionString" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="dbDatabase" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="dbPassword" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="dbHost" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="install-command" minOccurs="0" maxOccurs="unbounded"
+                                type="NLog.Targets.DatabaseCommandInfo" />
+                    <xs:element name="installConnectionString" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="uninstall-command" minOccurs="0" maxOccurs="unbounded"
+                                type="NLog.Targets.DatabaseCommandInfo" />
+                    <xs:element name="commandText" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseParameterInfo" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="dbUserName" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Database user name. If the ConnectionString is not provided this value will be used to construct the "User ID=" part of the connection string.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="dbProvider" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the database provider.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="useTransactions" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to use database transactions. Some data providers require this.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="connectionStringName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the connection string (as specified in &lt;connectionStrings&gt; configuration section.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="connectionString" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Connection string. When provided, it overrides the values specified in DBHost, DBUserName, DBPassword, DBDatabase.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="keepConnection" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to keep the database connection open between the log events.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="dbDatabase" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Database name. If the ConnectionString is not provided this value will be used to construct the "Database=" part of the connection string.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="dbPassword" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Database password. If the ConnectionString is not provided this value will be used to construct the "Password=" part of the connection string.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="dbHost" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Database host name. If the ConnectionString is not provided this value will be used to construct the "Server=" part of the connection string.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="installConnectionString" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="commandText" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Text of the SQL command to be run on each log level.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="System.Data.CommandType">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="StoredProcedure" />
+            <xs:enumeration value="TableDirect" />
+            <xs:enumeration value="Text" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="NLog.Targets.DatabaseCommandInfo">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="dbUserName" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="dbProvider" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="useTransactions" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="connectionStringName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="connectionString" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="dbDatabase" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="dbPassword" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="dbHost" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="install-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
-          <xs:element name="installConnectionString" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="uninstall-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
-          <xs:element name="commandText" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseParameterInfo" />
+            <xs:element name="commandType" minOccurs="0" maxOccurs="1" type="System.Data.CommandType" />
+            <xs:element name="connectionString" minOccurs="0" maxOccurs="1" type="Layout" />
+            <xs:element name="ignoreFailures" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+            <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseParameterInfo" />
+            <xs:element name="text" minOccurs="0" maxOccurs="1" type="Layout" />
         </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="dbUserName" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Database user name. If the ConnectionString is not provided this value will be used to construct the "User ID=" part of the connection string.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="dbProvider" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the database provider.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="useTransactions" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to use database transactions. Some data providers require this.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="connectionStringName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the connection string (as specified in &lt;connectionStrings&gt; configuration section.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="commandType" type="System.Data.CommandType">
+            <xs:annotation>
+                <xs:documentation>Type of the command.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="connectionString" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Connection string. When provided, it overrides the values specified in DBHost, DBUserName, DBPassword, DBDatabase.</xs:documentation>
-          </xs:annotation>
+            <xs:annotation>
+                <xs:documentation>
+                    Connection string to run the command against. If not provided, connection string from the target is used.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="keepConnection" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to keep the database connection open between the log events.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="ignoreFailures" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Indicates whether to ignore failures.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="dbDatabase" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Database name. If the ConnectionString is not provided this value will be used to construct the "Database=" part of the connection string.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="text" type="SimpleLayoutAttribute">
+            <xs:annotation>
+                <xs:documentation>Command text.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="dbPassword" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Database password. If the ConnectionString is not provided this value will be used to construct the "Password=" part of the connection string.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="dbHost" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Database host name. If the ConnectionString is not provided this value will be used to construct the "Server=" part of the connection string.</xs:documentation>
-          </xs:annotation>
+    </xs:complexType>
+    <xs:complexType name="NLog.Targets.DatabaseParameterInfo">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+            <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+            <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="precision" minOccurs="0" maxOccurs="1" type="xs:byte" />
+            <xs:element name="scale" minOccurs="0" maxOccurs="1" type="xs:byte" />
+            <xs:element name="size" minOccurs="0" maxOccurs="1" type="xs:integer" />
+        </xs:choice>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+            <xs:annotation>
+                <xs:documentation>
+                    Layout that should be use to calcuate the value for the parameter.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="installConnectionString" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="name" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Database parameter name.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="precision" type="xs:byte">
+            <xs:annotation>
+                <xs:documentation>
+                    Database parameter precision.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="commandText" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Text of the SQL command to be run on each log level.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="scale" type="xs:byte">
+            <xs:annotation>
+                <xs:documentation>
+                    Database parameter scale.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="size" type="xs:integer">
+            <xs:annotation>
+                <xs:documentation>
+                    Database parameter size.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="System.Data.CommandType">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="StoredProcedure" />
-      <xs:enumeration value="TableDirect" />
-      <xs:enumeration value="Text" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="NLog.Targets.DatabaseCommandInfo">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="commandType" minOccurs="0" maxOccurs="1" type="System.Data.CommandType" />
-      <xs:element name="connectionString" minOccurs="0" maxOccurs="1" type="Layout" />
-      <xs:element name="ignoreFailures" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-      <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseParameterInfo" />
-      <xs:element name="text" minOccurs="0" maxOccurs="1" type="Layout" />
-    </xs:choice>
-    <xs:attribute name="commandType" type="System.Data.CommandType">
-      <xs:annotation>
-        <xs:documentation>Type of the command.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="connectionString" type="SimpleLayoutAttribute">
-      <xs:annotation>
-        <xs:documentation>Connection string to run the command against. If not provided, connection string from the target is used.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="ignoreFailures" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Indicates whether to ignore failures.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="text" type="SimpleLayoutAttribute">
-      <xs:annotation>
-        <xs:documentation>Command text.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="NLog.Targets.DatabaseParameterInfo">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="precision" minOccurs="0" maxOccurs="1" type="xs:byte" />
-      <xs:element name="scale" minOccurs="0" maxOccurs="1" type="xs:byte" />
-      <xs:element name="size" minOccurs="0" maxOccurs="1" type="xs:integer" />
-    </xs:choice>
-    <xs:attribute name="layout" type="SimpleLayoutAttribute">
-      <xs:annotation>
-        <xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="name" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Database parameter name.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="precision" type="xs:byte">
-      <xs:annotation>
-        <xs:documentation>Database parameter precision.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="scale" type="xs:byte">
-      <xs:annotation>
-        <xs:documentation>Database parameter scale.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="size" type="xs:integer">
-      <xs:annotation>
-        <xs:documentation>Database parameter size.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="Debug">
-    <xs:complexContent>
-      <xs:extension base="Target">
+    </xs:complexType>
+    <xs:complexType name="Debug">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="FallbackGroup">
+        <xs:complexContent>
+            <xs:extension base="CompoundTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="returnToFirstOnSuccess" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="returnToFirstOnSuccess" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to return to the first target after any successful write.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="File">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="NLog.Targets.LineEndingMode" />
+                    <xs:element name="archiveAboveSize" minOccurs="0" maxOccurs="1" type="xs:long" />
+                    <xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="archiveFileName" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="archiveNumbering" minOccurs="0" maxOccurs="1" type="NLog.Targets.ArchiveNumberingMode" />
+                    <xs:element name="archiveEvery" minOccurs="0" maxOccurs="1" type="NLog.Targets.FileArchivePeriod" />
+                    <xs:element name="replaceFileContentsOnEachWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="fileAttributes" minOccurs="0" maxOccurs="1" type="NLog.Targets.Win32FileAttributes" />
+                    <xs:element name="fileName" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="enableFileDelete" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="createDirs" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="concurrentWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="openFileCacheTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="networkWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="concurrentWriteAttemptDelay" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="concurrentWriteAttempts" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="autoFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="keepFileOpen" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Text to be rendered.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="header" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Header.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="footer" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Footer.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="encoding" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>File encoding.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="lineEnding" type="NLog.Targets.LineEndingMode">
+                    <xs:annotation>
+                        <xs:documentation>Line ending mode.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="archiveAboveSize" type="xs:long">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Size in bytes above which log files will be automatically archived.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="maxArchiveFiles" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Maximum number of archive files that should be kept.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="archiveFileName" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the file to be used for an archive.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="archiveNumbering" type="NLog.Targets.ArchiveNumberingMode">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Way file archives are numbered.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="archiveEvery" type="NLog.Targets.FileArchivePeriod">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to automatically archive log files every time the specified time passes.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="replaceFileContentsOnEachWrite" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to replace file contents on each write instead of appending log message at the end.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="fileAttributes" type="NLog.Targets.Win32FileAttributes">
+                    <xs:annotation>
+                        <xs:documentation>
+                            File attributes (Windows only).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="fileName" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the file to write to.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to delete old log file on startup.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="enableFileDelete" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to enable log file(s) to be deleted.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="createDirs" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to create directories if they don't exist.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="concurrentWrites" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether concurrent writes to the log file by multiple processes on the same host.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="openFileCacheTimeout" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Maximum number of seconds that files are kept open. If this number is negative the files are not automatically closed after a period of inactivity.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="openFileCacheSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="networkWrites" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether concurrent writes to the log file by multiple processes on different network hosts.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="concurrentWriteAttemptDelay" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Delay in milliseconds to wait before attempting to write to the file again.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="concurrentWriteAttempts" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Number of times the write is appended on the file before NLog discards the log message.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="bufferSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Log file buffer size in bytes.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="autoFlush" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to automatically flush the file buffers after each log message.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="keepFileOpen" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to keep log file open instead of opening and closing it on each logging event.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="NLog.Targets.LineEndingMode">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Default" />
+            <xs:enumeration value="CRLF" />
+            <xs:enumeration value="CR" />
+            <xs:enumeration value="LF" />
+            <xs:enumeration value="None" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="NLog.Targets.ArchiveNumberingMode">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Sequence" />
+            <xs:enumeration value="Rolling" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="NLog.Targets.FileArchivePeriod">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="None" />
+            <xs:enumeration value="Year" />
+            <xs:enumeration value="Month" />
+            <xs:enumeration value="Day" />
+            <xs:enumeration value="Hour" />
+            <xs:enumeration value="Minute" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="NLog.Targets.Win32FileAttributes">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Readonly" />
+            <xs:enumeration value="Hidden" />
+            <xs:enumeration value="System" />
+            <xs:enumeration value="Archive" />
+            <xs:enumeration value="Device" />
+            <xs:enumeration value="Normal" />
+            <xs:enumeration value="Temporary" />
+            <xs:enumeration value="SparseFile" />
+            <xs:enumeration value="ReparsePoint" />
+            <xs:enumeration value="Compressed" />
+            <xs:enumeration value="NotContentIndexed" />
+            <xs:enumeration value="Encrypted" />
+            <xs:enumeration value="WriteThrough" />
+            <xs:enumeration value="NoBuffering" />
+            <xs:enumeration value="DeleteOnClose" />
+            <xs:enumeration value="PosixSemantics" />
+            <xs:enumeration value="ReadOnly" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="FilteringWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="condition" type="Condition">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Condition expression. Log events who meet this condition will be forwarded to the wrapped target.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="Memory">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="MessageBox">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="caption" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="caption" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Message box title.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="MethodCall">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="className" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="methodName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Method name. The method must be public and static.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="className" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Class name.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="NLog.Targets.MethodCallParameter">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="FallbackGroup">
-    <xs:complexContent>
-      <xs:extension base="CompoundTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="returnToFirstOnSuccess" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+            <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+            <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="type" minOccurs="0" maxOccurs="1" type="xs:string" />
         </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="returnToFirstOnSuccess" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to return to the first target after any successful write.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="File">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="NLog.Targets.LineEndingMode" />
-          <xs:element name="archiveAboveSize" minOccurs="0" maxOccurs="1" type="xs:long" />
-          <xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="archiveFileName" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="archiveNumbering" minOccurs="0" maxOccurs="1" type="NLog.Targets.ArchiveNumberingMode" />
-          <xs:element name="archiveEvery" minOccurs="0" maxOccurs="1" type="NLog.Targets.FileArchivePeriod" />
-          <xs:element name="replaceFileContentsOnEachWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="fileAttributes" minOccurs="0" maxOccurs="1" type="NLog.Targets.Win32FileAttributes" />
-          <xs:element name="fileName" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="enableFileDelete" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="createDirs" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="concurrentWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="openFileCacheTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="networkWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="concurrentWriteAttemptDelay" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="concurrentWriteAttempts" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="autoFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="keepFileOpen" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
         <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Text to be rendered.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="header" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Header.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="footer" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Footer.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="encoding" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>File encoding.</xs:documentation>
-          </xs:annotation>
+            <xs:annotation>
+                <xs:documentation>
+                    Layout that should be use to calcuate the value for the parameter.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="lineEnding" type="NLog.Targets.LineEndingMode">
-          <xs:annotation>
-            <xs:documentation>Line ending mode.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="archiveAboveSize" type="xs:long">
-          <xs:annotation>
-            <xs:documentation>Size in bytes above which log files will be automatically archived.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="name" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Name of the parameter.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="maxArchiveFiles" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Maximum number of archive files that should be kept.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="archiveFileName" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Name of the file to be used for an archive.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="archiveNumbering" type="NLog.Targets.ArchiveNumberingMode">
-          <xs:annotation>
-            <xs:documentation>Way file archives are numbered.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="type" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Type of the parameter.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="archiveEvery" type="NLog.Targets.FileArchivePeriod">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to automatically archive log files every time the specified time passes.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="replaceFileContentsOnEachWrite" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to replace file contents on each write instead of appending log message at the end.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="fileAttributes" type="NLog.Targets.Win32FileAttributes">
-          <xs:annotation>
-            <xs:documentation>File attributes (Windows only).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="fileName" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Name of the file to write to.</xs:documentation>
-          </xs:annotation>
+    </xs:complexType>
+    <xs:complexType name="Network">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
+                    <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action that should be taken if the message is larger than maxMessageSize.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="newLine" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to append newline at the end of log message.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="maxMessageSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Maximum message size in bytes.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="encoding" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Encoding to be used.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="connectionCacheSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Size of the connection cache (number of connections which are kept alive).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="keepConnection" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to keep connection open whenever possible.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="address" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Network address.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="NLogViewer">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
+                    <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="appInfo" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="ndcItemSeparator" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="includeNLogData" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
+                    <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="newLine" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to append newline at the end of log message.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Instance of  that is used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action that should be taken if the message is larger than maxMessageSize.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="maxMessageSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Maximum message size in bytes.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="encoding" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Encoding to be used.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="connectionCacheSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Size of the connection cache (number of connections which are kept alive).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="address" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Network address.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="keepConnection" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to keep connection open whenever possible.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeSourceInfo" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include source info (file name and line number) in the information sent over the network.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeCallSite" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include call site (class and method name) in the information sent over the network.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="appInfo" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            AppInfo field. By default it's the friendly name of the current AppDomain.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="ndcItemSeparator" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>NDC item separator.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeNdc" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include  stack contents.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeNLogData" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include NLog-specific extensions to log4j schema.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeMdc" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include  dictionary contents.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="Null">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="formatMessage" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="formatMessage" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to perform layout calculation.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="OutputDebugString">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="PostFilteringWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="defaultFilter" minOccurs="0" maxOccurs="1" type="Condition" />
+                    <xs:element name="when" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.Wrappers.FilteringRule" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="defaultFilter" type="Condition">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Default filter to be applied when no specific rule matches.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="NLog.Targets.Wrappers.FilteringRule">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+            <xs:element name="exists" minOccurs="0" maxOccurs="1" type="Condition" />
+            <xs:element name="filter" minOccurs="0" maxOccurs="1" type="Condition" />
+        </xs:choice>
+        <xs:attribute name="exists" type="Condition">
+            <xs:annotation>
+                <xs:documentation>
+                    Condition to be tested.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to delete old log file on startup.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="enableFileDelete" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to enable log file(s) to be deleted.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="createDirs" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to create directories if they don't exist.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="concurrentWrites" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on the same host.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="openFileCacheTimeout" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Maximum number of seconds that files are kept open. If this number is negative the files are not automatically closed after a period of inactivity.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="filter" type="Condition">
+            <xs:annotation>
+                <xs:documentation>
+                    Resulting filter to be applied when the condition matches.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="openFileCacheSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="networkWrites" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on different network hosts.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="concurrentWriteAttemptDelay" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Delay in milliseconds to wait before attempting to write to the file again.</xs:documentation>
-          </xs:annotation>
+    </xs:complexType>
+    <xs:complexType name="RandomizeGroup">
+        <xs:complexContent>
+            <xs:extension base="CompoundTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="RepeatingWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="repeatCount" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="repeatCount" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Number of times to repeat each log message.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="RetryingWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="retryDelayMilliseconds" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="retryCount" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="retryDelayMilliseconds" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Time to wait between retries in milliseconds.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="retryCount" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Number of retries that should be attempted on the wrapped target in case of a failure.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="RoundRobinGroup">
+        <xs:complexContent>
+            <xs:extension base="CompoundTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="SplitGroup">
+        <xs:complexContent>
+            <xs:extension base="CompoundTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="WebService">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
+                    <xs:element name="url" minOccurs="0" maxOccurs="1" type="xs:anyURI" />
+                    <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="protocol" minOccurs="0" maxOccurs="1" type="NLog.Targets.WebServiceProtocol" />
+                    <xs:element name="namespace" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="url" type="xs:anyURI">
+                    <xs:annotation>
+                        <xs:documentation>Web service URL.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="encoding" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Encoding.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="protocol" type="NLog.Targets.WebServiceProtocol">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Protocol to be used when calling web service.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="namespace" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Web service namespace.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="methodName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Web service method name.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="NLog.Targets.WebServiceProtocol">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Soap11" />
+            <xs:enumeration value="Soap12" />
+            <xs:enumeration value="HttpPost" />
+            <xs:enumeration value="HttpGet" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="CsvLayout">
+        <xs:complexContent>
+            <xs:extension base="Layout">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="quoting" minOccurs="0" maxOccurs="1" type="NLog.Layouts.CsvQuotingMode" />
+                    <xs:element name="quoteChar" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="withHeader" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="customColumnDelimiter" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="delimiter" minOccurs="0" maxOccurs="1" type="NLog.Layouts.CsvColumnDelimiterMode" />
+                    <xs:element name="column" minOccurs="0" maxOccurs="unbounded" type="NLog.Layouts.CsvColumn" />
+                </xs:choice>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Body layout (can be repeated multiple times).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="footer" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Footer layout.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="header" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Header layout.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="quoting" type="NLog.Layouts.CsvQuotingMode">
+                    <xs:annotation>
+                        <xs:documentation>Quoting mode.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="quoteChar" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Quote Character.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="withHeader" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether CVS should include header.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="customColumnDelimiter" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom').
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="delimiter" type="NLog.Layouts.CsvColumnDelimiterMode">
+                    <xs:annotation>
+                        <xs:documentation>Column delimiter.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="NLog.Layouts.CsvQuotingMode">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="All" />
+            <xs:enumeration value="Nothing" />
+            <xs:enumeration value="Auto" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="NLog.Layouts.CsvColumnDelimiterMode">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Auto" />
+            <xs:enumeration value="Comma" />
+            <xs:enumeration value="Semicolon" />
+            <xs:enumeration value="Tab" />
+            <xs:enumeration value="Pipe" />
+            <xs:enumeration value="Space" />
+            <xs:enumeration value="Custom" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="NLog.Layouts.CsvColumn">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+            <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+            <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+            <xs:annotation>
+                <xs:documentation>
+                    Layout of the column.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="concurrentWriteAttempts" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Number of times the write is appended on the file before NLog discards the log message.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="bufferSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Log file buffer size in bytes.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="autoFlush" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to automatically flush the file buffers after each log message.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="keepFileOpen" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to keep log file open instead of opening and closing it on each logging event.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="name" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>Name of the column.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="NLog.Targets.LineEndingMode">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Default" />
-      <xs:enumeration value="CRLF" />
-      <xs:enumeration value="CR" />
-      <xs:enumeration value="LF" />
-      <xs:enumeration value="None" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:simpleType name="NLog.Targets.ArchiveNumberingMode">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Sequence" />
-      <xs:enumeration value="Rolling" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:simpleType name="NLog.Targets.FileArchivePeriod">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="None" />
-      <xs:enumeration value="Year" />
-      <xs:enumeration value="Month" />
-      <xs:enumeration value="Day" />
-      <xs:enumeration value="Hour" />
-      <xs:enumeration value="Minute" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:simpleType name="NLog.Targets.Win32FileAttributes">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Readonly" />
-      <xs:enumeration value="Hidden" />
-      <xs:enumeration value="System" />
-      <xs:enumeration value="Archive" />
-      <xs:enumeration value="Device" />
-      <xs:enumeration value="Normal" />
-      <xs:enumeration value="Temporary" />
-      <xs:enumeration value="SparseFile" />
-      <xs:enumeration value="ReparsePoint" />
-      <xs:enumeration value="Compressed" />
-      <xs:enumeration value="NotContentIndexed" />
-      <xs:enumeration value="Encrypted" />
-      <xs:enumeration value="WriteThrough" />
-      <xs:enumeration value="NoBuffering" />
-      <xs:enumeration value="DeleteOnClose" />
-      <xs:enumeration value="PosixSemantics" />
-      <xs:enumeration value="ReadOnly" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="FilteringWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
+    </xs:complexType>
+    <xs:complexType name="SimpleLayout">
+        <xs:complexContent>
+            <xs:extension base="Layout">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="text" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Layout text.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="LayoutWithHeaderAndFooter">
+        <xs:complexContent>
+            <xs:extension base="Layout">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Body layout (can be repeated multiple times).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="header" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Header layout.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="footer" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Footer layout.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="Log4JXmlEventLayout">
+        <xs:complexContent>
+            <xs:extension base="Layout">
+                <xs:choice minOccurs="0" maxOccurs="unbounded" />
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="when">
+        <xs:complexContent>
+            <xs:extension base="Filter">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
+                    <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+                </xs:choice>
+                <xs:attribute name="condition" type="Condition">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Condition expression.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="action" type="FilterResult">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action to be taken when filter matches.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="FilterResult">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Neutral" />
+            <xs:enumeration value="Log" />
+            <xs:enumeration value="Ignore" />
+            <xs:enumeration value="LogFinal" />
+            <xs:enumeration value="IgnoreFinal" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="whenContains">
+        <xs:complexContent>
+            <xs:extension base="Filter">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="substring" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+                    <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout to be used to filter log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="substring" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Substring to be matched.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="action" type="FilterResult">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action to be taken when filter matches.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="ignoreCase" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to ignore case when comparing strings.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="whenEqual">
+        <xs:complexContent>
+            <xs:extension base="Filter">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+                    <xs:element name="compareTo" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="ignoreCase" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to ignore case when comparing strings.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout to be used to filter log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="action" type="FilterResult">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action to be taken when filter matches.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="compareTo" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            String to compare the layout to.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="whenNotContains">
+        <xs:complexContent>
+            <xs:extension base="Filter">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="substring" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+                    <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout to be used to filter log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="substring" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Substring to be matched.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="action" type="FilterResult">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action to be taken when filter matches.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="ignoreCase" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to ignore case when comparing strings.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="whenNotEqual">
+        <xs:complexContent>
+            <xs:extension base="Filter">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+                    <xs:element name="compareTo" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="ignoreCase" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to ignore case when comparing strings.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout to be used to filter log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="action" type="FilterResult">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Action to be taken when filter matches.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="compareTo" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            String to compare the layout to.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="MSMQ">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="useXmlEncoding" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="recoverable" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="createQueueIfNotExists" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="label" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="queue" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="useXmlEncoding" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to use the XML format when serializing message.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="encoding" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Encoding to be used when writing text to the queue.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="recoverable" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to use recoverable messages (with guaranteed delivery).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="createQueueIfNotExists" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to create the queue if it doesn't exists.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="label" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Label to associate with each message.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="queue" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the queue to write to.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="AspNetBufferingWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="bufferGrowLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="growBufferAsNeeded" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="bufferGrowLimit" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Maximum number of log events that the buffer can keep.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="growBufferAsNeeded" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether buffer should grow as needed.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="bufferSize" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Number of log events to be buffered.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="AspNetTrace">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="AspResponse">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="addComments" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="addComments" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to add &lt;!-- --&gt; comments around all written texts.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="ColoredConsole">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="useDefaultRowHighlightingRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="highlight-row" minOccurs="0" maxOccurs="unbounded"
+                                type="NLog.Targets.ConsoleRowHighlightingRule" />
+                    <xs:element name="highlight-word" minOccurs="0" maxOccurs="unbounded"
+                                type="NLog.Targets.ConsoleWordHighlightingRule" />
+                    <xs:element name="errorStream" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Text to be rendered.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="header" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Header.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="footer" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Footer.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="useDefaultRowHighlightingRules" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to use default row highlighting rules.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="errorStream" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether the error stream (stderr) should be used instead of the output stream (stdout).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="NLog.Targets.ConsoleOutputColor">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Black" />
+            <xs:enumeration value="DarkBlue" />
+            <xs:enumeration value="DarkGreen" />
+            <xs:enumeration value="DarkCyan" />
+            <xs:enumeration value="DarkRed" />
+            <xs:enumeration value="DarkMagenta" />
+            <xs:enumeration value="DarkYellow" />
+            <xs:enumeration value="Gray" />
+            <xs:enumeration value="DarkGray" />
+            <xs:enumeration value="Blue" />
+            <xs:enumeration value="Green" />
+            <xs:enumeration value="Cyan" />
+            <xs:enumeration value="Red" />
+            <xs:enumeration value="Magenta" />
+            <xs:enumeration value="Yellow" />
+            <xs:enumeration value="White" />
+            <xs:enumeration value="NoChange" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="NLog.Targets.ConsoleRowHighlightingRule">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
+            <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
+            <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
+            <xs:element name="foregroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
         </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="backgroundColor" type="NLog.Targets.ConsoleOutputColor">
+            <xs:annotation>
+                <xs:documentation>Background color.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="condition" type="Condition">
-          <xs:annotation>
-            <xs:documentation>Condition expression. Log events who meet this condition will be forwarded to the wrapped target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="Memory">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="MessageBox">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="caption" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="caption" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Message box title.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="MethodCall">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="className" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="methodName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Method name. The method must be public and static.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="className" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Class name.</xs:documentation>
-          </xs:annotation>
+            <xs:annotation>
+                <xs:documentation>
+                    Condition that must be met in order to set the specified foreground and background color.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="NLog.Targets.MethodCallParameter">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="type" minOccurs="0" maxOccurs="1" type="xs:string" />
-    </xs:choice>
-    <xs:attribute name="layout" type="SimpleLayoutAttribute">
-      <xs:annotation>
-        <xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="name" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Name of the parameter.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="type" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Type of the parameter.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="Network">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
-          <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="foregroundColor" type="NLog.Targets.ConsoleOutputColor">
+            <xs:annotation>
+                <xs:documentation>Foreground color.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
-          <xs:annotation>
-            <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="newLine" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="maxMessageSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Maximum message size in bytes.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="encoding" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Encoding to be used.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="connectionCacheSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="keepConnection" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="address" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Network address.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="NLogViewer">
-    <xs:complexContent>
-      <xs:extension base="Target">
+    </xs:complexType>
+    <xs:complexType name="NLog.Targets.ConsoleWordHighlightingRule">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
-          <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="appInfo" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="ndcItemSeparator" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="includeNLogData" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
-          <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="newLine" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Instance of  that is used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
-          <xs:annotation>
-            <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="maxMessageSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Maximum message size in bytes.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="encoding" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Encoding to be used.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="connectionCacheSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="address" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Network address.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="keepConnection" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeSourceInfo" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include source info (file name and line number) in the information sent over the network.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeCallSite" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include call site (class and method name) in the information sent over the network.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="appInfo" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>AppInfo field. By default it's the friendly name of the current AppDomain.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="ndcItemSeparator" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>NDC item separator.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeNdc" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include  stack contents.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeNLogData" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include NLog-specific extensions to log4j schema.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeMdc" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include  dictionary contents.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="Null">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="formatMessage" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="formatMessage" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to perform layout calculation.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="OutputDebugString">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="PostFilteringWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="defaultFilter" minOccurs="0" maxOccurs="1" type="Condition" />
-          <xs:element name="when" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.Wrappers.FilteringRule" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="defaultFilter" type="Condition">
-          <xs:annotation>
-            <xs:documentation>Default filter to be applied when no specific rule matches.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="NLog.Targets.Wrappers.FilteringRule">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="exists" minOccurs="0" maxOccurs="1" type="Condition" />
-      <xs:element name="filter" minOccurs="0" maxOccurs="1" type="Condition" />
-    </xs:choice>
-    <xs:attribute name="exists" type="Condition">
-      <xs:annotation>
-        <xs:documentation>Condition to be tested.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="filter" type="Condition">
-      <xs:annotation>
-        <xs:documentation>Resulting filter to be applied when the condition matches.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="RandomizeGroup">
-    <xs:complexContent>
-      <xs:extension base="CompoundTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="RepeatingWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="repeatCount" minOccurs="0" maxOccurs="1" type="xs:integer" />
+            <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
+            <xs:element name="foregroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
+            <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+            <xs:element name="regex" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="wholeWords" minOccurs="0" maxOccurs="1" type="xs:boolean" />
         </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="repeatCount" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Number of times to repeat each log message.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="RetryingWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="retryDelayMilliseconds" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="retryCount" minOccurs="0" maxOccurs="1" type="xs:integer" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="retryDelayMilliseconds" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Time to wait between retries in milliseconds.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="retryCount" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Number of retries that should be attempted on the wrapped target in case of a failure.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="RoundRobinGroup">
-    <xs:complexContent>
-      <xs:extension base="CompoundTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="SplitGroup">
-    <xs:complexContent>
-      <xs:extension base="CompoundTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="WebService">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
-          <xs:element name="url" minOccurs="0" maxOccurs="1" type="xs:anyURI" />
-          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="protocol" minOccurs="0" maxOccurs="1" type="NLog.Targets.WebServiceProtocol" />
-          <xs:element name="namespace" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="url" type="xs:anyURI">
-          <xs:annotation>
-            <xs:documentation>Web service URL.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="encoding" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Encoding.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="protocol" type="NLog.Targets.WebServiceProtocol">
-          <xs:annotation>
-            <xs:documentation>Protocol to be used when calling web service.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="namespace" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Web service namespace.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="methodName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Web service method name.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="NLog.Targets.WebServiceProtocol">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Soap11" />
-      <xs:enumeration value="Soap12" />
-      <xs:enumeration value="HttpPost" />
-      <xs:enumeration value="HttpGet" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="CsvLayout">
-    <xs:complexContent>
-      <xs:extension base="Layout">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="quoting" minOccurs="0" maxOccurs="1" type="NLog.Layouts.CsvQuotingMode" />
-          <xs:element name="quoteChar" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="withHeader" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="customColumnDelimiter" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="delimiter" minOccurs="0" maxOccurs="1" type="NLog.Layouts.CsvColumnDelimiterMode" />
-          <xs:element name="column" minOccurs="0" maxOccurs="unbounded" type="NLog.Layouts.CsvColumn" />
-        </xs:choice>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Body layout (can be repeated multiple times).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="footer" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Footer layout.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="header" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Header layout.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="quoting" type="NLog.Layouts.CsvQuotingMode">
-          <xs:annotation>
-            <xs:documentation>Quoting mode.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="quoteChar" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Quote Character.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="withHeader" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether CVS should include header.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="customColumnDelimiter" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom').</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="delimiter" type="NLog.Layouts.CsvColumnDelimiterMode">
-          <xs:annotation>
-            <xs:documentation>Column delimiter.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="backgroundColor" type="NLog.Targets.ConsoleOutputColor">
+            <xs:annotation>
+                <xs:documentation>Background color.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="NLog.Layouts.CsvQuotingMode">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="All" />
-      <xs:enumeration value="Nothing" />
-      <xs:enumeration value="Auto" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:simpleType name="NLog.Layouts.CsvColumnDelimiterMode">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Auto" />
-      <xs:enumeration value="Comma" />
-      <xs:enumeration value="Semicolon" />
-      <xs:enumeration value="Tab" />
-      <xs:enumeration value="Pipe" />
-      <xs:enumeration value="Space" />
-      <xs:enumeration value="Custom" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="NLog.Layouts.CsvColumn">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-    </xs:choice>
-    <xs:attribute name="layout" type="SimpleLayoutAttribute">
-      <xs:annotation>
-        <xs:documentation>Layout of the column.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="name" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Name of the column.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="SimpleLayout">
-    <xs:complexContent>
-      <xs:extension base="Layout">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="text" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Layout text.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="LayoutWithHeaderAndFooter">
-    <xs:complexContent>
-      <xs:extension base="Layout">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Body layout (can be repeated multiple times).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="header" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Header layout.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="footer" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Footer layout.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="Log4JXmlEventLayout">
-    <xs:complexContent>
-      <xs:extension base="Layout">
-        <xs:choice minOccurs="0" maxOccurs="unbounded" />
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="when">
-    <xs:complexContent>
-      <xs:extension base="Filter">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
-          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
-        </xs:choice>
-        <xs:attribute name="condition" type="Condition">
-          <xs:annotation>
-            <xs:documentation>Condition expression.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="action" type="FilterResult">
-          <xs:annotation>
-            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="FilterResult">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Neutral" />
-      <xs:enumeration value="Log" />
-      <xs:enumeration value="Ignore" />
-      <xs:enumeration value="LogFinal" />
-      <xs:enumeration value="IgnoreFinal" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="whenContains">
-    <xs:complexContent>
-      <xs:extension base="Filter">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="substring" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
-          <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-        </xs:choice>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="substring" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Substring to be matched.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="action" type="FilterResult">
-          <xs:annotation>
-            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="ignoreCase" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="whenEqual">
-    <xs:complexContent>
-      <xs:extension base="Filter">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
-          <xs:element name="compareTo" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="ignoreCase" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="action" type="FilterResult">
-          <xs:annotation>
-            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="compareTo" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>String to compare the layout to.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="whenNotContains">
-    <xs:complexContent>
-      <xs:extension base="Filter">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="substring" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
-          <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-        </xs:choice>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="substring" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Substring to be matched.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="action" type="FilterResult">
-          <xs:annotation>
-            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="foregroundColor" type="NLog.Targets.ConsoleOutputColor">
+            <xs:annotation>
+                <xs:documentation>Foreground color.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="ignoreCase" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="whenNotEqual">
-    <xs:complexContent>
-      <xs:extension base="Filter">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
-          <xs:element name="compareTo" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="ignoreCase" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="action" type="FilterResult">
-          <xs:annotation>
-            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="compareTo" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>String to compare the layout to.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="MSMQ">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="useXmlEncoding" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="recoverable" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="createQueueIfNotExists" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="label" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="queue" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="useXmlEncoding" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to use the XML format when serializing message.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="encoding" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Encoding to be used when writing text to the queue.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="recoverable" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to use recoverable messages (with guaranteed delivery).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="createQueueIfNotExists" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to create the queue if it doesn't exists.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="label" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Label to associate with each message.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="queue" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Name of the queue to write to.</xs:documentation>
-          </xs:annotation>
+            <xs:annotation>
+                <xs:documentation>
+                    Indicates whether to ignore case when comparing texts.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="AspNetBufferingWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="bufferGrowLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="growBufferAsNeeded" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="bufferGrowLimit" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Maximum number of log events that the buffer can keep.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="growBufferAsNeeded" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether buffer should grow as needed.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="bufferSize" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Number of log events to be buffered.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="AspNetTrace">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="AspResponse">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="addComments" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="addComments" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to add &lt;!-- --&gt; comments around all written texts.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="ColoredConsole">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="useDefaultRowHighlightingRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="highlight-row" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleRowHighlightingRule" />
-          <xs:element name="highlight-word" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleWordHighlightingRule" />
-          <xs:element name="errorStream" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Text to be rendered.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="header" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Header.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="footer" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Footer.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="useDefaultRowHighlightingRules" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to use default row highlighting rules.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="errorStream" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether the error stream (stderr) should be used instead of the output stream (stdout).</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="regex" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Regular expression to be matched. You must specify either text or regex.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="NLog.Targets.ConsoleOutputColor">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Black" />
-      <xs:enumeration value="DarkBlue" />
-      <xs:enumeration value="DarkGreen" />
-      <xs:enumeration value="DarkCyan" />
-      <xs:enumeration value="DarkRed" />
-      <xs:enumeration value="DarkMagenta" />
-      <xs:enumeration value="DarkYellow" />
-      <xs:enumeration value="Gray" />
-      <xs:enumeration value="DarkGray" />
-      <xs:enumeration value="Blue" />
-      <xs:enumeration value="Green" />
-      <xs:enumeration value="Cyan" />
-      <xs:enumeration value="Red" />
-      <xs:enumeration value="Magenta" />
-      <xs:enumeration value="Yellow" />
-      <xs:enumeration value="White" />
-      <xs:enumeration value="NoChange" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="NLog.Targets.ConsoleRowHighlightingRule">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
-      <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
-      <xs:element name="foregroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
-    </xs:choice>
-    <xs:attribute name="backgroundColor" type="NLog.Targets.ConsoleOutputColor">
-      <xs:annotation>
-        <xs:documentation>Background color.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="condition" type="Condition">
-      <xs:annotation>
-        <xs:documentation>Condition that must be met in order to set the specified foreground and background color.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="foregroundColor" type="NLog.Targets.ConsoleOutputColor">
-      <xs:annotation>
-        <xs:documentation>Foreground color.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="NLog.Targets.ConsoleWordHighlightingRule">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
-      <xs:element name="foregroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
-      <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-      <xs:element name="regex" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="wholeWords" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-    </xs:choice>
-    <xs:attribute name="backgroundColor" type="NLog.Targets.ConsoleOutputColor">
-      <xs:annotation>
-        <xs:documentation>Background color.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="foregroundColor" type="NLog.Targets.ConsoleOutputColor">
-      <xs:annotation>
-        <xs:documentation>Foreground color.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="ignoreCase" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Indicates whether to ignore case when comparing texts.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="regex" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Regular expression to be matched. You must specify either text or regex.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="text" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Text to be matched. You must specify either text or regex.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="wholeWords" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Indicates whether to match whole words only.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="Debugger">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="footer" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Footer.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Text to be rendered.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="header" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Header.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="text" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Text to be matched. You must specify either text or regex.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="EventLog">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="machineName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="source" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="category" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="eventId" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="log" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="machineName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the machine on which Event Log service is running.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="source" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Value to be used as the event Source.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="category" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout that renders event Category.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="eventId" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout that renders event ID.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="log" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the Event Log to write to. This can be System, Application or any user-defined name.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="FormControl">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="append" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="controlName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="formName" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="append" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether log text should be appended to the text of the control instead of overwriting it.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="controlName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of control to which NLog will log write log text.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="formName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the Form on which the control is located.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="ImpersonatingWrapper">
-    <xs:complexContent>
-      <xs:extension base="WrapperTargetBase">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="userName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="password" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="revertToSelf" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="impersonationLevel" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.SecurityImpersonationLevel" />
-          <xs:element name="domain" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="logOnType" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.SecurityLogOnType" />
-          <xs:element name="logOnProvider" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.LogOnProviderType" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="userName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Username to change context to.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="password" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>User account password.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="revertToSelf" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to revert to the credentials of the process instead of impersonating another user.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="impersonationLevel" type="NLog.Targets.Wrappers.SecurityImpersonationLevel">
-          <xs:annotation>
-            <xs:documentation>Required impersonation level.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="domain" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Windows domain name to change context to.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="wholeWords" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Indicates whether to match whole words only.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="logOnType" type="NLog.Targets.Wrappers.SecurityLogOnType">
-          <xs:annotation>
-            <xs:documentation>Logon Type.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="logOnProvider" type="NLog.Targets.Wrappers.LogOnProviderType">
-          <xs:annotation>
-            <xs:documentation>Type of the logon provider.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="NLog.Targets.Wrappers.SecurityImpersonationLevel">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Anonymous" />
-      <xs:enumeration value="Identification" />
-      <xs:enumeration value="Impersonation" />
-      <xs:enumeration value="Delegation" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:simpleType name="NLog.Targets.Wrappers.SecurityLogOnType">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Interactive" />
-      <xs:enumeration value="Network" />
-      <xs:enumeration value="Batch" />
-      <xs:enumeration value="Service" />
-      <xs:enumeration value="NetworkClearText" />
-      <xs:enumeration value="NewCredentials" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:simpleType name="NLog.Targets.Wrappers.LogOnProviderType">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Default" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="Mail">
-    <xs:complexContent>
-      <xs:extension base="Target">
+    </xs:complexType>
+    <xs:complexType name="Debugger">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="footer" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Footer.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Text to be rendered.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="header" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Header.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="EventLog">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="machineName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="source" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="category" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="eventId" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="log" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="machineName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the machine on which Event Log service is running.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="source" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Value to be used as the event Source.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="category" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout that renders event Category.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="eventId" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout that renders event ID.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="log" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the Event Log to write to. This can be System, Application or any user-defined name.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="FormControl">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="append" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="controlName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="formName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="append" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether log text should be appended to the text of the control instead of overwriting it.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="controlName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of control to which NLog will log write log text.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="formName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the Form on which the control is located.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="ImpersonatingWrapper">
+        <xs:complexContent>
+            <xs:extension base="WrapperTargetBase">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="userName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="password" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="revertToSelf" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="impersonationLevel" minOccurs="0" maxOccurs="1"
+                                type="NLog.Targets.Wrappers.SecurityImpersonationLevel" />
+                    <xs:element name="domain" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="logOnType" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.SecurityLogOnType" />
+                    <xs:element name="logOnProvider" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.LogOnProviderType" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="userName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Username to change context to.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="password" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            User account password.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="revertToSelf" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to revert to the credentials of the process instead of impersonating another user.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="impersonationLevel" type="NLog.Targets.Wrappers.SecurityImpersonationLevel">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Required impersonation level.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="domain" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Windows domain name to change context to.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="logOnType" type="NLog.Targets.Wrappers.SecurityLogOnType">
+                    <xs:annotation>
+                        <xs:documentation>Logon Type.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="logOnProvider" type="NLog.Targets.Wrappers.LogOnProviderType">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Type of the logon provider.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="NLog.Targets.Wrappers.SecurityImpersonationLevel">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Anonymous" />
+            <xs:enumeration value="Identification" />
+            <xs:enumeration value="Impersonation" />
+            <xs:enumeration value="Delegation" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="NLog.Targets.Wrappers.SecurityLogOnType">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Interactive" />
+            <xs:enumeration value="Network" />
+            <xs:enumeration value="Batch" />
+            <xs:enumeration value="Service" />
+            <xs:enumeration value="NetworkClearText" />
+            <xs:enumeration value="NewCredentials" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="NLog.Targets.Wrappers.LogOnProviderType">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Default" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="Mail">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="html" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="addNewLines" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="subject" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="to" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="bcc" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="cc" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="from" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="body" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="smtpUserName" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="enableSsl" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="smtpPassword" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="smtpAuthentication" minOccurs="0" maxOccurs="1" type="NLog.Targets.SmtpAuthenticationMode" />
+                    <xs:element name="smtpServer" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="smtpPort" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="header" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Header.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="footer" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Footer.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Text to be rendered.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="html" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to send message as HTML instead of plain text.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="addNewLines" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to add new lines between log entries.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="encoding" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Encoding to be used for sending e-mail.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="subject" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Mail subject.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="to" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="bcc" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="cc" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="from" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Sender's email address (e.g. joe@domain.com).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="body" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Mail message body (repeated for each log message send in one mail).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="smtpUserName" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Username used to connect to SMTP server (used when SmtpAuthentication is set to "basic").
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="enableSsl" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether SSL (secure sockets layer) should be used when communicating with SMTP server.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="smtpPassword" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic").
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="smtpAuthentication" type="NLog.Targets.SmtpAuthenticationMode">
+                    <xs:annotation>
+                        <xs:documentation>
+                            SMTP Authentication mode.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="smtpServer" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            SMTP Server to be used for sending.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="smtpPort" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Port number that SMTP Server is listening on.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="NLog.Targets.SmtpAuthenticationMode">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="None" />
+            <xs:enumeration value="Basic" />
+            <xs:enumeration value="Ntlm" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="PerfCounter">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="instanceName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="counterHelp" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="counterType" minOccurs="0" maxOccurs="1" type="System.Diagnostics.PerformanceCounterType" />
+                    <xs:element name="autoCreate" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="categoryName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="counterName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="instanceName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Performance counter instance name.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="counterHelp" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Counter help text.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="counterType" type="System.Diagnostics.PerformanceCounterType">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Performance counter type.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="autoCreate" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether performance counter should be automatically created.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="categoryName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the performance counter category.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="counterName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the performance counter.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="System.Diagnostics.PerformanceCounterType">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="NumberOfItems32" />
+            <xs:enumeration value="NumberOfItems64" />
+            <xs:enumeration value="NumberOfItemsHEX32" />
+            <xs:enumeration value="NumberOfItemsHEX64" />
+            <xs:enumeration value="RateOfCountsPerSecond32" />
+            <xs:enumeration value="RateOfCountsPerSecond64" />
+            <xs:enumeration value="CountPerTimeInterval32" />
+            <xs:enumeration value="CountPerTimeInterval64" />
+            <xs:enumeration value="RawFraction" />
+            <xs:enumeration value="RawBase" />
+            <xs:enumeration value="AverageTimer32" />
+            <xs:enumeration value="AverageBase" />
+            <xs:enumeration value="AverageCount64" />
+            <xs:enumeration value="SampleFraction" />
+            <xs:enumeration value="SampleCounter" />
+            <xs:enumeration value="SampleBase" />
+            <xs:enumeration value="CounterTimer" />
+            <xs:enumeration value="CounterTimerInverse" />
+            <xs:enumeration value="Timer100Ns" />
+            <xs:enumeration value="Timer100NsInverse" />
+            <xs:enumeration value="ElapsedTime" />
+            <xs:enumeration value="CounterMultiTimer" />
+            <xs:enumeration value="CounterMultiTimerInverse" />
+            <xs:enumeration value="CounterMultiTimer100Ns" />
+            <xs:enumeration value="CounterMultiTimer100NsInverse" />
+            <xs:enumeration value="CounterMultiBase" />
+            <xs:enumeration value="CounterDelta32" />
+            <xs:enumeration value="CounterDelta64" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="RichTextBox">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="height" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="autoScroll" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="maxLines" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="showMinimized" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="toolWindow" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="controlName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="formName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="width" minOccurs="0" maxOccurs="1" type="xs:integer" />
+                    <xs:element name="word-coloring" minOccurs="0" maxOccurs="unbounded"
+                                type="NLog.Targets.RichTextBoxWordColoringRule" />
+                    <xs:element name="useDefaultRowColoringRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="row-coloring" minOccurs="0" maxOccurs="unbounded"
+                                type="NLog.Targets.RichTextBoxRowColoringRule" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="height" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Initial height of the form with rich text box.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="autoScroll" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether scroll bar will be moved automatically to show most recent log entries.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="maxLines" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Maximum number of lines the rich text box will store (or 0 to disable this feature).
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="showMinimized" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether the created form will be initially minimized.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="toolWindow" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether the created window will be a tool window.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="controlName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of RichTextBox to which Nlog will write.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="formName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the Form on which the control is located. If there is no open form of a specified name than NLog will create a new one.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="width" type="xs:integer">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Initial width of the form with rich text box.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="useDefaultRowColoringRules" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to use default coloring rules.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="System.Drawing.FontStyle">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="Regular" />
+            <xs:enumeration value="Bold" />
+            <xs:enumeration value="Italic" />
+            <xs:enumeration value="Underline" />
+            <xs:enumeration value="Strikeout" />
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="NLog.Targets.RichTextBoxWordColoringRule">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="html" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="addNewLines" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="subject" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="to" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="bcc" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="cc" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="from" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="body" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="smtpUserName" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="enableSsl" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="smtpPassword" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="smtpAuthentication" minOccurs="0" maxOccurs="1" type="NLog.Targets.SmtpAuthenticationMode" />
-          <xs:element name="smtpServer" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="smtpPort" minOccurs="0" maxOccurs="1" type="xs:integer" />
+            <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="fontColor" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+            <xs:element name="regex" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="style" minOccurs="0" maxOccurs="1" type="System.Drawing.FontStyle" />
+            <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="wholeWords" minOccurs="0" maxOccurs="1" type="xs:boolean" />
         </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="header" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Header.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="footer" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Footer.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Text to be rendered.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="html" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to send message as HTML instead of plain text.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="addNewLines" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to add new lines between log entries.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="encoding" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Encoding to be used for sending e-mail.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="subject" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Mail subject.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="to" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="bcc" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="cc" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="from" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Sender's email address (e.g. joe@domain.com).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="body" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Mail message body (repeated for each log message send in one mail).</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="smtpUserName" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Username used to connect to SMTP server (used when SmtpAuthentication is set to "basic").</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="enableSsl" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether SSL (secure sockets layer) should be used when communicating with SMTP server.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="smtpPassword" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic").</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="smtpAuthentication" type="NLog.Targets.SmtpAuthenticationMode">
-          <xs:annotation>
-            <xs:documentation>SMTP Authentication mode.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="smtpServer" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>SMTP Server to be used for sending.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="smtpPort" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Port number that SMTP Server is listening on.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="NLog.Targets.SmtpAuthenticationMode">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="None" />
-      <xs:enumeration value="Basic" />
-      <xs:enumeration value="Ntlm" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="PerfCounter">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="instanceName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="counterHelp" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="counterType" minOccurs="0" maxOccurs="1" type="System.Diagnostics.PerformanceCounterType" />
-          <xs:element name="autoCreate" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="categoryName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="counterName" minOccurs="0" maxOccurs="1" type="xs:string" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="instanceName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Performance counter instance name.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="counterHelp" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Counter help text.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="counterType" type="System.Diagnostics.PerformanceCounterType">
-          <xs:annotation>
-            <xs:documentation>Performance counter type.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="autoCreate" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether performance counter should be automatically created.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="categoryName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the performance counter category.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="counterName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the performance counter.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="backgroundColor" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Background color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="System.Diagnostics.PerformanceCounterType">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="NumberOfItems32" />
-      <xs:enumeration value="NumberOfItems64" />
-      <xs:enumeration value="NumberOfItemsHEX32" />
-      <xs:enumeration value="NumberOfItemsHEX64" />
-      <xs:enumeration value="RateOfCountsPerSecond32" />
-      <xs:enumeration value="RateOfCountsPerSecond64" />
-      <xs:enumeration value="CountPerTimeInterval32" />
-      <xs:enumeration value="CountPerTimeInterval64" />
-      <xs:enumeration value="RawFraction" />
-      <xs:enumeration value="RawBase" />
-      <xs:enumeration value="AverageTimer32" />
-      <xs:enumeration value="AverageBase" />
-      <xs:enumeration value="AverageCount64" />
-      <xs:enumeration value="SampleFraction" />
-      <xs:enumeration value="SampleCounter" />
-      <xs:enumeration value="SampleBase" />
-      <xs:enumeration value="CounterTimer" />
-      <xs:enumeration value="CounterTimerInverse" />
-      <xs:enumeration value="Timer100Ns" />
-      <xs:enumeration value="Timer100NsInverse" />
-      <xs:enumeration value="ElapsedTime" />
-      <xs:enumeration value="CounterMultiTimer" />
-      <xs:enumeration value="CounterMultiTimerInverse" />
-      <xs:enumeration value="CounterMultiTimer100Ns" />
-      <xs:enumeration value="CounterMultiTimer100NsInverse" />
-      <xs:enumeration value="CounterMultiBase" />
-      <xs:enumeration value="CounterDelta32" />
-      <xs:enumeration value="CounterDelta64" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="RichTextBox">
-    <xs:complexContent>
-      <xs:extension base="Target">
+        <xs:attribute name="fontColor" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Font color. Names are identical with KnownColor enum extended with Empty value which means that font color won't be changed.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="ignoreCase" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Indicates whether to ignore case when comparing texts.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="regex" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Regular expression to be matched. You must specify either text or regex.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="style" type="System.Drawing.FontStyle">
+            <xs:annotation>
+                <xs:documentation>
+                    Font style of matched text. Possible values are the same as in FontStyle enum in System.Drawing.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="text" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>
+                    Text to be matched. You must specify either text or regex.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="wholeWords" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation>
+                    Indicates whether to match whole words only.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType name="NLog.Targets.RichTextBoxRowColoringRule">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="height" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="autoScroll" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="maxLines" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="showMinimized" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="toolWindow" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="controlName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="formName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="width" minOccurs="0" maxOccurs="1" type="xs:integer" />
-          <xs:element name="word-coloring" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.RichTextBoxWordColoringRule" />
-          <xs:element name="useDefaultRowColoringRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="row-coloring" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.RichTextBoxRowColoringRule" />
+            <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
+            <xs:element name="fontColor" minOccurs="0" maxOccurs="1" type="xs:string" />
+            <xs:element name="style" minOccurs="0" maxOccurs="1" type="System.Drawing.FontStyle" />
         </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="backgroundColor" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>Background color.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="height" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Initial height of the form with rich text box.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="autoScroll" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether scroll bar will be moved automatically to show most recent log entries.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="maxLines" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Maximum number of lines the rich text box will store (or 0 to disable this feature).</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="condition" type="Condition">
+            <xs:annotation>
+                <xs:documentation>
+                    Condition that must be met in order to set the specified font color.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="showMinimized" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether the created form will be initially minimized.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="toolWindow" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether the created window will be a tool window.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="controlName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of RichTextBox to which Nlog will write.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="fontColor" type="xs:string">
+            <xs:annotation>
+                <xs:documentation>Font color.</xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="formName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the Form on which the control is located. If there is no open form of a specified name than NLog will create a new one.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="width" type="xs:integer">
-          <xs:annotation>
-            <xs:documentation>Initial width of the form with rich text box.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="useDefaultRowColoringRules" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to use default coloring rules.</xs:documentation>
-          </xs:annotation>
+        <xs:attribute name="style" type="System.Drawing.FontStyle">
+            <xs:annotation>
+                <xs:documentation>
+                    Font style of matched text.
+                </xs:documentation>
+            </xs:annotation>
         </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:simpleType name="System.Drawing.FontStyle">
-    <xs:restriction base="xs:string">
-      <xs:enumeration value="Regular" />
-      <xs:enumeration value="Bold" />
-      <xs:enumeration value="Italic" />
-      <xs:enumeration value="Underline" />
-      <xs:enumeration value="Strikeout" />
-    </xs:restriction>
-  </xs:simpleType>
-  <xs:complexType name="NLog.Targets.RichTextBoxWordColoringRule">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="fontColor" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-      <xs:element name="regex" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="style" minOccurs="0" maxOccurs="1" type="System.Drawing.FontStyle" />
-      <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="wholeWords" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-    </xs:choice>
-    <xs:attribute name="backgroundColor" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Background color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="fontColor" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Font color. Names are identical with KnownColor enum extended with Empty value which means that font color won't be changed.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="ignoreCase" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Indicates whether to ignore case when comparing texts.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="regex" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Regular expression to be matched. You must specify either text or regex.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="style" type="System.Drawing.FontStyle">
-      <xs:annotation>
-        <xs:documentation>Font style of matched text. Possible values are the same as in FontStyle enum in System.Drawing.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="text" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Text to be matched. You must specify either text or regex.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="wholeWords" type="xs:boolean">
-      <xs:annotation>
-        <xs:documentation>Indicates whether to match whole words only.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="NLog.Targets.RichTextBoxRowColoringRule">
-    <xs:choice minOccurs="0" maxOccurs="unbounded">
-      <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
-      <xs:element name="fontColor" minOccurs="0" maxOccurs="1" type="xs:string" />
-      <xs:element name="style" minOccurs="0" maxOccurs="1" type="System.Drawing.FontStyle" />
-    </xs:choice>
-    <xs:attribute name="backgroundColor" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Background color.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="condition" type="Condition">
-      <xs:annotation>
-        <xs:documentation>Condition that must be met in order to set the specified font color.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="fontColor" type="xs:string">
-      <xs:annotation>
-        <xs:documentation>Font color.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-    <xs:attribute name="style" type="System.Drawing.FontStyle">
-      <xs:annotation>
-        <xs:documentation>Font style of matched text.</xs:documentation>
-      </xs:annotation>
-    </xs:attribute>
-  </xs:complexType>
-  <xs:complexType name="Trace">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="layout" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Layout used to format log messages.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
-  <xs:complexType name="LogReceiverService">
-    <xs:complexContent>
-      <xs:extension base="Target">
-        <xs:choice minOccurs="0" maxOccurs="unbounded">
-          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="endpointConfigurationName" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="endpointAddress" minOccurs="0" maxOccurs="1" type="xs:string" />
-          <xs:element name="useBinaryEncoding" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
-          <xs:element name="clientId" minOccurs="0" maxOccurs="1" type="Layout" />
-          <xs:element name="includeEventProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
-        </xs:choice>
-        <xs:attribute name="name" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the target.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="endpointConfigurationName" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Name of the endpoint configuration in WCF configuration file.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="endpointAddress" type="xs:string">
-          <xs:annotation>
-            <xs:documentation>Endpoint address.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="useBinaryEncoding" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to use binary message encoding.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="clientId" type="SimpleLayoutAttribute">
-          <xs:annotation>
-            <xs:documentation>Client ID.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-        <xs:attribute name="includeEventProperties" type="xs:boolean">
-          <xs:annotation>
-            <xs:documentation>Indicates whether to include per-event properties in the payload sent to the server.</xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-      </xs:extension>
-    </xs:complexContent>
-  </xs:complexType>
+    </xs:complexType>
+    <xs:complexType name="Trace">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="layout" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Layout used to format log messages.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="LogReceiverService">
+        <xs:complexContent>
+            <xs:extension base="Target">
+                <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="endpointConfigurationName" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="endpointAddress" minOccurs="0" maxOccurs="1" type="xs:string" />
+                    <xs:element name="useBinaryEncoding" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                    <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
+                    <xs:element name="clientId" minOccurs="0" maxOccurs="1" type="Layout" />
+                    <xs:element name="includeEventProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+                </xs:choice>
+                <xs:attribute name="name" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Name of the target.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="endpointConfigurationName" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Name of the endpoint configuration in WCF configuration file.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="endpointAddress" type="xs:string">
+                    <xs:annotation>
+                        <xs:documentation>Endpoint address.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="useBinaryEncoding" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to use binary message encoding.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="clientId" type="SimpleLayoutAttribute">
+                    <xs:annotation>
+                        <xs:documentation>Client ID.</xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute name="includeEventProperties" type="xs:boolean">
+                    <xs:annotation>
+                        <xs:documentation>
+                            Indicates whether to include per-event properties in the payload sent to the server.
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
 </xs:schema>
\ No newline at end of file
--- a/Stocks/Stocks.Service/Properties/AssemblyInfo.cs	Tue Mar 20 15:07:49 2012 +0000
+++ b/Stocks/Stocks.Service/Properties/AssemblyInfo.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -1,10 +1,10 @@
 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("Stocks.Service")]
 [assembly: AssemblyDescription("")]
 [assembly: AssemblyConfiguration("")]
@@ -17,9 +17,11 @@
 // 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("fb5377de-bd32-4d1b-8cc3-7404f15e088e")]
 
 // Version information for an assembly consists of the following four values:
@@ -32,5 +34,6 @@
 // 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")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
\ No newline at end of file
--- a/Stocks/Stocks.Service/StocksService.cs	Tue Mar 20 15:07:49 2012 +0000
+++ b/Stocks/Stocks.Service/StocksService.cs	Tue Mar 20 16:53:29 2012 +0000
@@ -10,136 +10,146 @@
 using Stocks.Common.Models;
 
 namespace Stocks.Service
-{ 
-  public class StocksService : IStocksService
-  {
-    private static readonly Logger Log = LogManager.GetCurrentClassLogger();
+{
+    public class StocksService : IStocksService
+    {
+        #region Delegates
 
-    private IList<Company> _companies;
-    private IConfigurationService _configurationService;
-    private List<Price> _currentPrices;
-    private string _serviceUrl;
-    private IWebClientShim _webClient;
+        public delegate void PriceChangedEventHandler(object sender, PriceChangedEventArgs e);
 
-    public bool IsActive { get; private set; }
-    public SummaryStats Stats { get; private set; }
+        #endregion
+
+        private static readonly Logger Log = LogManager.GetCurrentClassLogger();
 
-    public StocksService(
-      IConfigurationService configurationService,
-      IWebClientShim webClientShim)
-    {
-      new AssemblyInit();
-
-      _webClient = webClientShim;
-      _configurationService = configurationService;
-      Stats = new SummaryStats();
+        private readonly IConfigurationService _configurationService;
+        private readonly IWebClientShim _webClient;
+        private IList<Company> _companies;
+        private List<Price> _currentPrices;
+        private string _serviceUrl;
 
-      GetCompanyList();
-    }
-
-    private void GetCompanyList()
-    {
-      _companies = _configurationService.GetCompanies();
-
-      string symbolsCsv = _companies.Select(
-        c => c.Symbol).Aggregate((c, d) => c + "," + d);
-      _serviceUrl = _configurationService.GetServiceUrl(symbolsCsv);
-    }
+        public StocksService(
+            IConfigurationService configurationService,
+            IWebClientShim webClientShim)
+        {
+            new AssemblyInit();
 
-    public event PriceChangedEventHandler PriceChanged;
-    public delegate void PriceChangedEventHandler(object sender, PriceChangedEventArgs e);
-    protected virtual void OnPriceChanged(Price price)
-    {
-      Stats.PriceChangeEvents++;
+            _webClient = webClientShim;
+            _configurationService = configurationService;
+            Stats = new SummaryStats();
 
-      if (PriceChanged != null)
-        PriceChanged(this, new PriceChangedEventArgs() { Price = price });
-    }
+            GetCompanyList();
+        }
 
-    public void Start()
-    {
-      PrepareForServiceStarting();
-      Task.Factory.StartNew(() => DownloadPrices());
-    }
+        public SummaryStats Stats { get; private set; }
+
+        #region IStocksService Members
 
-    public void Stop()
-    {
-      IsActive = false;
-      Log.Debug("StockService stopped");
-    }
+        public bool IsActive { get; private set; }
+
+        public void Start()
+        {
+            PrepareForServiceStarting();
+            Task.Factory.StartNew(DownloadPrices);
+        }
 
-    private void PrepareForServiceStarting()
-    {
-      Log.Debug("StockService starting");
-      IsActive = true;
-      Stats.Reset();
-      _currentPrices = new List<Price>(_companies.Count);
-    }
+        public void Stop()
+        {
+            IsActive = false;
+            Log.Debug("StockService stopped");
+        }
 
-    private void DownloadPrices()
-    {
-      try
-      {
-        Stopwatch timeToDownload;
-
-        while (IsActive)
-        {
-          string webResponse = TimedDelegates.Execute<string>(
-            _webClient.DownloadString,
-            _serviceUrl,
-            out timeToDownload);
+        #endregion
 
-          PopulatePricesFromWebResponse(webResponse);
-          UpdateStats(timeToDownload, webResponse);
-        }
-      }
-      catch (Exception e)
-      {
-        Log.Error("Exception during DownloadPrices()");
-        Log.Error("Stack Trace {0}: /r/nException Message: {1}", e.StackTrace, e.Message);
-        this.Stop();
-      }
-    }
+        private void GetCompanyList()
+        {
+            _companies = _configurationService.GetCompanies();
+
+            string symbolsCsv = _companies.Select(
+                c => c.Symbol).Aggregate((c, d) => c + "," + d);
 
-    private void PopulatePricesFromWebResponse(string webResponse)
-    {
-      string[] webPrices = webResponse.Split(
-        new string[] { "\n", "\r\n" },
-        StringSplitOptions.RemoveEmptyEntries);
+            _serviceUrl = _configurationService.GetServiceUrl(symbolsCsv);
+        }
+
+        public event PriceChangedEventHandler PriceChanged;
 
-      foreach (string webPriceData in webPrices)
-      {
-        var webPrice = Factory.CreatePrice(webPriceData);
-        var localPrice = _currentPrices.Find(x => x.Symbol == webPrice.Symbol);
+        protected virtual void OnPriceChanged(Price price)
+        {
+            Stats.PriceChangeEvents++;
 
-        if (localPrice == null) {
-          _currentPrices.Add(new Price(webPrice.Symbol, webPrice.CurrentPrice, webPrice.PreviousPrice));
-          continue;
+            if (PriceChanged != null)
+                PriceChanged(this, new PriceChangedEventArgs {Price = price});
         }
 
-        if (localPrice.Equals(webPrice))
-          continue;
-        else
-          UpdateLocalPrice(webPrice, localPrice);
-      }
-    }
+        private void PrepareForServiceStarting()
+        {
+            Log.Debug("StockService starting");
+            IsActive = true;
+            Stats.Reset();
+            _currentPrices = new List<Price>(_companies.Count);
+        }
+
+        private void DownloadPrices()
+        {
+            try
+            {
+                while (IsActive)
+                {
+                    Stopwatch timeToDownload;
+                    string webResponse = TimedDelegates.Execute(
+                        _webClient.DownloadString,
+                        _serviceUrl,
+                        out timeToDownload);
+
+                    PopulatePricesFromWebResponse(webResponse);
+                    UpdateStats(timeToDownload, webResponse);
+                }
+            }
+            catch (Exception e)
+            {
+                Log.Error("Exception during DownloadPrices()");
+                Log.Error("Stack Trace {0}: /r/nException Message: {1}", e.StackTrace, e.Message);
+                Stop();
+            }
+        }
 
-    private void UpdateLocalPrice(Price webPrice, Price localPrice)
-    {
-      localPrice.PreviousPrice = localPrice.CurrentPrice;
-      localPrice.CurrentPrice = webPrice.CurrentPrice;
-      OnPriceChanged(localPrice);
+        private void PopulatePricesFromWebResponse(string webResponse)
+        {
+            string[] webPrices = webResponse.Split(
+                new[] {"\n", "\r\n"},
+                StringSplitOptions.RemoveEmptyEntries);
+
+            foreach (string webPriceData in webPrices)
+            {
+                Price webPrice = Factory.CreatePrice(webPriceData);
+                Price localPrice = _currentPrices.Find(x => x.Symbol == webPrice.Symbol);
+
+                if (localPrice == null)
+                {
+                    _currentPrices.Add(new Price(webPrice.Symbol, webPrice.CurrentPrice, webPrice.PreviousPrice));
+                    continue;
+                }
+
+                if (!localPrice.Equals(webPrice))
+                    UpdateLocalPrice(webPrice, localPrice);
+            }
+        }
+
+        private void UpdateLocalPrice(Price webPrice, Price localPrice)
+        {
+            localPrice.PreviousPrice = localPrice.CurrentPrice;
+            localPrice.CurrentPrice = webPrice.CurrentPrice;
+            OnPriceChanged(localPrice);
+        }
+
+        private void UpdateStats(Stopwatch timeToDownload, string webResponse)
+        {
+            Stats.LastWebRequest.Duration = (int) timeToDownload.ElapsedMilliseconds;
+            Stats.LastWebRequest.PricesDownloaded = _currentPrices.Count;
+            Stats.LastWebRequest.Response = webResponse;
+            Stats.LastWebRequest.Request = _serviceUrl;
+            Stats.LastWebRequest.SymbolCount = _companies.Count;
+            Stats.NumberOfRequests++;
+            Log.Trace(Stats);
+        }
     }
-
-    private void UpdateStats(Stopwatch timeToDownload, string webResponse)
-    {
-      Stats.LastWebRequest.Duration = (int)timeToDownload.ElapsedMilliseconds;
-      Stats.LastWebRequest.PricesDownloaded = _currentPrices.Count;
-      Stats.LastWebRequest.Response = webResponse;
-      Stats.LastWebRequest.Request = _serviceUrl;
-      Stats.LastWebRequest.SymbolCount = _companies.Count;
-      Stats.NumberOfRequests++;
-      Log.Trace(Stats);
-    }
-  }
 }
\ No newline at end of file
--- a/Stocks/Stocks.Service/packages.config	Tue Mar 20 15:07:49 2012 +0000
+++ b/Stocks/Stocks.Service/packages.config	Tue Mar 20 16:53:29 2012 +0000
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
+
 <packages>
-  <package id="Ninject" version="2.2.1.4" />
-  <package id="NLog" version="2.0.0.2000" />
+    <package id="Ninject" version="2.2.1.4" />
+    <package id="NLog" version="2.0.0.2000" />
 </packages>
\ No newline at end of file