diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-30 13:38:03 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-01 11:02:43 -0700 |
commit | 5b33ddfca4d707afdd0a616940b7062d6d6e6276 (patch) | |
tree | d37c0912035086caa63e25030e96b5a15086ca10 /src | |
parent | 2463e9ef424978928ca3edd869075b1f7fc570ea (diff) | |
download | DotNetOpenAuth-5b33ddfca4d707afdd0a616940b7062d6d6e6276.zip DotNetOpenAuth-5b33ddfca4d707afdd0a616940b7062d6d6e6276.tar.gz DotNetOpenAuth-5b33ddfca4d707afdd0a616940b7062d6d6e6276.tar.bz2 |
Added logging support.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOAuth.Test/DotNetOAuth.Test.csproj | 5 | ||||
-rw-r--r-- | src/DotNetOAuth.Test/ServiceProviderTest.cs | 6 | ||||
-rw-r--r-- | src/DotNetOAuth/DotNetOAuth.csproj | 5 | ||||
-rw-r--r-- | src/DotNetOAuth/ProtocolMessageSerializer.cs | 4 |
4 files changed, 12 insertions, 8 deletions
diff --git a/src/DotNetOAuth.Test/DotNetOAuth.Test.csproj b/src/DotNetOAuth.Test/DotNetOAuth.Test.csproj index d136b2c..efb1209 100644 --- a/src/DotNetOAuth.Test/DotNetOAuth.Test.csproj +++ b/src/DotNetOAuth.Test/DotNetOAuth.Test.csproj @@ -2,7 +2,7 @@ <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
+ <ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4376ECC9-C346-4A99-B13C-FA93C0FBD2C9}</ProjectGuid>
<OutputType>Library</OutputType>
@@ -70,6 +70,9 @@ <Name>DotNetOAuth</Name>
</ProjectReference>
</ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Logging.config" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="..\..\tools\DotNetOAuth.Versioning.targets" />
</Project>
\ No newline at end of file diff --git a/src/DotNetOAuth.Test/ServiceProviderTest.cs b/src/DotNetOAuth.Test/ServiceProviderTest.cs index 56ef619..38836f4 100644 --- a/src/DotNetOAuth.Test/ServiceProviderTest.cs +++ b/src/DotNetOAuth.Test/ServiceProviderTest.cs @@ -2,12 +2,12 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DotNetOAuth.Test {
- [TestClass()]
- public class ServiceProviderTest {
+ [TestClass]
+ public class ServiceProviderTest : TestBase {
/// <summary>
/// A test for UserAuthorizationUri
/// </summary>
- [TestMethod()]
+ [TestMethod]
public void UserAuthorizationUriTest() {
ServiceProvider target = new ServiceProvider();
Uri expected = new Uri("http://localhost/authorization");
diff --git a/src/DotNetOAuth/DotNetOAuth.csproj b/src/DotNetOAuth/DotNetOAuth.csproj index 6f2e531..dc4b104 100644 --- a/src/DotNetOAuth/DotNetOAuth.csproj +++ b/src/DotNetOAuth/DotNetOAuth.csproj @@ -73,6 +73,11 @@ <Compile Include="IndirectMessage.cs" />
<Compile Include="IndirectMessageEncoder.cs" />
<Compile Include="IProtocolMessage.cs" />
+ <Compile Include="Logger.cs" />
+ <Compile Include="Loggers\ILog.cs" />
+ <Compile Include="Loggers\Log4NetLogger.cs" />
+ <Compile Include="Loggers\NoOpLogger.cs" />
+ <Compile Include="Loggers\TraceLogger.cs" />
<Compile Include="MessageScheme.cs" />
<Compile Include="ProtocolException.cs" />
<Compile Include="ProtocolMessageSerializer.cs" />
diff --git a/src/DotNetOAuth/ProtocolMessageSerializer.cs b/src/DotNetOAuth/ProtocolMessageSerializer.cs index 14b6b2f..a9c92bc 100644 --- a/src/DotNetOAuth/ProtocolMessageSerializer.cs +++ b/src/DotNetOAuth/ProtocolMessageSerializer.cs @@ -1,11 +1,7 @@ using System;
using System.Collections.Generic;
-using System.Linq;
using System.Runtime.Serialization;
-using System.Text;
using System.Xml;
-using System.Diagnostics;
-using System.IO;
using System.Xml.Linq;
namespace DotNetOAuth {
|