Skip to content

Commit edb5088

Browse files
committed
Updated version to 2.13.
1 parent e8adcf8 commit edb5088

File tree

3 files changed

+34
-19
lines changed

3 files changed

+34
-19
lines changed

nuget/Zyan.nuspec

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Zyan</id>
5-
<version>2.12</version>
5+
<version>2.13</version>
66
<title>Zyan</title>
77
<authors>Rainbird,yallie</authors>
88
<owners>Hagen Siegel</owners>
@@ -13,28 +13,36 @@
1313
<description>Zyan is a framework that simplifies development of distributed applications for desktop and mobile platforms. With Zyan you can publish any .NET class for remote access over the network. Zyan is highly customizable and provides you with tools to build modular and plugable distributed applications.</description>
1414
<summary>Amazingly easy distributed application framework for .NET, Mono and Xamarin.Android</summary>
1515
<releaseNotes>What's new:
16+
17+
v2.13: Bugfixes and stability improvements
18+
— #73: RemoveClientServerWires freeze
19+
— #71: Problem with initialization of class TcpCustomServerProtocolSetup
20+
— #70: Update dependencies
21+
— #69: Thread pool starvation on broadcast events
22+
— #67: SRP issue related to missing accounts
23+
1624
v2.12: Bugfixes and stability improvements
17-
- #61: Thread pool queue issue for canceled subscriptions.
18-
- #53: Updated SRP package integration to version 1.0.4.
19-
- #3: Improved the code to synchronize subscriptions when connection is restored.
25+
#61: Thread pool queue issue for canceled subscriptions.
26+
#53: Updated SRP package integration to version 1.0.4.
27+
#3: Improved the code to synchronize subscriptions when connection is restored.
2028

2129
v2.11: Security fixes and new features.
22-
- #45: Updated Zyan.SafeDeserializationHelpers package.
23-
- #44: Support for multi-step authentication and SRP-6a protocol.
30+
#45: Updated Zyan.SafeDeserializationHelpers package.
31+
#44: Support for multi-step authentication and SRP-6a protocol.
2432

2533
v2.10: Security fixes and new features.
26-
- #43: Integrate Zyan.SafeDeserializationHelpers package.
27-
- #40: TcpEx: invalid TCP packet crashing a running server.
28-
- #35: NIC selection for protocols when creating a channel.
29-
- #34: Event arguments transformation support.
30-
- #29: ZyanConnection memory leak.
31-
- #27: Passing null instead of credentials.
32-
- #4: Fix session filters behavior.
34+
#43: Integrate Zyan.SafeDeserializationHelpers package.
35+
#40: TcpEx: invalid TCP packet crashing a running server.
36+
#35: NIC selection for protocols when creating a channel.
37+
#34: Event arguments transformation support.
38+
#29: ZyanConnection memory leak.
39+
#27: Passing null instead of credentials.
40+
#4: Fix session filters behavior.
3341

3442
v2.9: Bugfixes and stability improvements.
35-
- #17: No remote address specified for reconnect.
36-
- #16: Fix errors found by the static analysis tools bug.
37-
- #9: Call interceptors don't always initialize the call context.
43+
#17: No remote address specified for reconnect.
44+
#16: Fix errors found by the static analysis tools bug.
45+
#9: Call interceptors don't always initialize the call context.
3846

3947
For more details, see the project website: http://zyan.com.de
4048
</releaseNotes>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
using System.Reflection;
22

3-
[assembly: AssemblyVersion("2.12.0.0")]
4-
[assembly: AssemblyFileVersion("2.12.0.0")]
3+
[assembly: AssemblyVersion("2.13.0.0")]
4+
[assembly: AssemblyFileVersion("2.13.0.0")]

source/Zyan.Tests/SessionVariableTests.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ public class SessionVariableTests
4040
public interface ISessionSample
4141
{
4242
string Get(string name);
43+
string Get(string name, string defaultValue);
4344
void Set(string name, string value);
4445
}
4546

4647
public class SessionSample : ISessionSample
4748
{
4849
static ISessionVariableAdapter V => ServerSession.CurrentSession.SessionVariables;
49-
public string Get(string name) => V.GetSessionVariable(name, "failed");
50+
public string Get(string name) => V.GetSessionVariable<string>(name);
51+
public string Get(string name, string defaultValue) => V.GetSessionVariable(name, defaultValue);
5052
public void Set(string name, string value) => V[name] = value;
5153
}
5254

@@ -65,6 +67,11 @@ public void SessionVariablesAreStoredWithinTheCurrentSession()
6567
var proxy = conn.CreateProxy<ISessionSample>();
6668
proxy.Set("Hello", "World");
6769
Assert.AreEqual("World", proxy.Get("Hello"));
70+
71+
var temp = proxy.Get("Undefined");
72+
Assert.IsNull(temp);
73+
proxy.Set("Undefined", "Defined");
74+
Assert.AreEqual("Defined", proxy.Get("Undefined"));
6875
}
6976
}
7077
}

0 commit comments

Comments
 (0)