Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 111a9b8

Browse files
committed
Register ENV lic key if exists already
1 parent 2d3683f commit 111a9b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ServiceStack.Text.Tests/QueryStringSerializerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public void Can_serialize_quoted_strings()
131131
#if !NETCORE_SUPPORT
132132
private T StringToPoco<T>(string str)
133133
{
134+
var envKey = Environment.GetEnvironmentVariable("SERVICESTACK_LICENSE");
135+
if (!string.IsNullOrEmpty(envKey)) Licensing.RegisterLicense(envKey);
134136
using (new BasicAppHost().Init())
135137
{
136138
NameValueCollection queryString = HttpUtility.ParseQueryString(str);

0 commit comments

Comments
 (0)