Skip to content

Commit

Permalink
Normalize all the line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonorossi committed Dec 28, 2014
1 parent 1e806f9 commit 15b4184
Show file tree
Hide file tree
Showing 20 changed files with 11,184 additions and 11,184 deletions.
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
// Copyright 2004-2010 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Castle.Services.Logging.Log4netIntegration
{
using System;

using Castle.Core.Logging;

public class ThreadContextStack : IContextStack
{
private readonly log4net.Util.ThreadContextStack log4netStack;

public ThreadContextStack(log4net.Util.ThreadContextStack log4netStack)
{
this.log4netStack = log4netStack;
}

public int Count
{
get { return log4netStack.Count; }
}

public void Clear()
{
log4netStack.Clear();
}

public string Pop()
{
return log4netStack.Pop();
}

public IDisposable Push(string message)
{
return log4netStack.Push(message);
}
}
// Copyright 2004-2010 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Castle.Services.Logging.Log4netIntegration
{
using System;

using Castle.Core.Logging;

public class ThreadContextStack : IContextStack
{
private readonly log4net.Util.ThreadContextStack log4netStack;

public ThreadContextStack(log4net.Util.ThreadContextStack log4netStack)
{
this.log4netStack = log4netStack;
}

public int Count
{
get { return log4netStack.Count; }
}

public void Clear()
{
log4netStack.Clear();
}

public string Pop()
{
return log4netStack.Pop();
}

public IDisposable Push(string message)
{
return log4netStack.Push(message);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
// Copyright 2004-2010 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Castle.Services.Logging.Log4netIntegration
{
using Castle.Core.Logging;

using log4net;

public class ThreadContextStacks : IContextStacks
{
public IContextStack this[string key]
{
get
{
var log4netStack = ThreadContext.Stacks[key];

// log4net never allows a null stack.
return new ThreadContextStack(log4netStack);
}
}
}
// Copyright 2004-2010 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Castle.Services.Logging.Log4netIntegration
{
using Castle.Core.Logging;

using log4net;

public class ThreadContextStacks : IContextStacks
{
public IContextStack this[string key]
{
get
{
var log4netStack = ThreadContext.Stacks[key];

// log4net never allows a null stack.
return new ThreadContextStack(log4netStack);
}
}
}
}
Loading

0 comments on commit 15b4184

Please sign in to comment.