Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow setting the values directly on config class

  • Loading branch information...
commit 93a8e62dd88f5680d8373bc7e98df308fa6e7e6a 1 parent 237ee47
Paul Tyng paultyng authored
2  src/ServiceStack.Text/JsConfig.cs
View
@@ -23,7 +23,7 @@ static JsConfig()
Reset();
}
- public static IDisposable BeginScope()
+ public static JsConfigScope BeginScope()
{
return new JsConfigScope();
}
6 src/ServiceStack.Text/JsConfigScope.cs
View
@@ -7,7 +7,7 @@
namespace ServiceStack.Text
{
- internal sealed class JsConfigScope : IDisposable
+ public sealed class JsConfigScope : IDisposable
{
bool disposed;
JsConfigScope parent;
@@ -15,14 +15,14 @@ internal sealed class JsConfigScope : IDisposable
[ThreadStatic]
private static JsConfigScope head;
- public JsConfigScope()
+ internal JsConfigScope()
{
Thread.BeginThreadAffinity();
parent = head;
head = this;
}
- public static JsConfigScope Current
+ internal static JsConfigScope Current
{
get
{
Please sign in to comment.
Something went wrong with that request. Please try again.