Permalink
Browse files

allow setting the values directly on config class

  • Loading branch information...
1 parent 237ee47 commit 93a8e62dd88f5680d8373bc7e98df308fa6e7e6a @paultyng paultyng committed Dec 12, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/ServiceStack.Text/JsConfig.cs
  2. +3 −3 src/ServiceStack.Text/JsConfigScope.cs
@@ -23,7 +23,7 @@ static JsConfig()
Reset();
}
- public static IDisposable BeginScope()
+ public static JsConfigScope BeginScope()
{
return new JsConfigScope();
}
@@ -7,22 +7,22 @@
namespace ServiceStack.Text
{
- internal sealed class JsConfigScope : IDisposable
+ public sealed class JsConfigScope : IDisposable
{
bool disposed;
JsConfigScope parent;
[ThreadStatic]
private static JsConfigScope head;
- public JsConfigScope()
+ internal JsConfigScope()
{
Thread.BeginThreadAffinity();
parent = head;
head = this;
}
- public static JsConfigScope Current
+ internal static JsConfigScope Current
{
get
{

0 comments on commit 93a8e62

Please sign in to comment.