Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit f5267fc

Browse files
committed
Rename SetInt & GetInt -> SetInt32 & GetInt32
Fixes #256
1 parent d111e24 commit f5267fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.AspNet.Http.Extensions/SessionCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.AspNet.Http
88
{
99
public static class SessionCollectionExtensions
1010
{
11-
public static void SetInt(this ISessionCollection session, string key, int value)
11+
public static void SetInt32(this ISessionCollection session, string key, int value)
1212
{
1313
var bytes = new byte[]
1414
{
@@ -20,7 +20,7 @@ public static void SetInt(this ISessionCollection session, string key, int value
2020
session.Set(key, bytes);
2121
}
2222

23-
public static int? GetInt(this ISessionCollection session, string key)
23+
public static int? GetInt32(this ISessionCollection session, string key)
2424
{
2525
var data = session.Get(key);
2626
if (data == null || data.Length < 4)

0 commit comments

Comments
 (0)