Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
20da3edb
Commit
20da3edb
authored
Aug 15, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v87
parent
0713119d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
NuGet.Config
NuGet.Config
+1
-0
GarbageCollectionTests.cs
StackExchange.Redis.Tests/GarbageCollectionTests.cs
+9
-9
StackExchange.Redis.csproj
StackExchange.Redis/StackExchange.Redis.csproj
+1
-1
No files found.
NuGet.Config
View file @
20da3edb
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<
configuration
>
<
configuration
>
<
packageSources
>
<
packageSources
>
<
clear
/>
<
clear
/>
<!--<
add
key
=
"localNuget"
value
=
"c:\code\LocalNuget"
/>-->
<
add
key
=
"xUnit"
value
=
"https://www.myget.org/F/xunit/api/v3/index.json"
/>
<
add
key
=
"xUnit"
value
=
"https://www.myget.org/F/xunit/api/v3/index.json"
/>
<
add
key
=
"NuGet"
value
=
"https://api.nuget.org/v3/index.json"
/>
<
add
key
=
"NuGet"
value
=
"https://api.nuget.org/v3/index.json"
/>
</
packageSources
>
</
packageSources
>
...
...
StackExchange.Redis.Tests/GarbageCollectionTests.cs
View file @
20da3edb
...
@@ -22,8 +22,8 @@ private static void ForceGC()
...
@@ -22,8 +22,8 @@ private static void ForceGC()
[
Fact
]
[
Fact
]
public
void
MuxerIsCollected
()
public
void
MuxerIsCollected
()
{
{
#if
!
DEBUG
#if DEBUG
Skip
.
Inconclusive
(
"Only predictable in
debug
builds"
);
Skip
.
Inconclusive
(
"Only predictable in
release
builds"
);
#endif
#endif
// this is more nuanced than it looks; multiple sockets with
// this is more nuanced than it looks; multiple sockets with
// async callbacks, plus a heartbeat on a timer
// async callbacks, plus a heartbeat on a timer
...
@@ -34,9 +34,9 @@ public void MuxerIsCollected()
...
@@ -34,9 +34,9 @@ public void MuxerIsCollected()
ForceGC
();
ForceGC
();
#if DEBUG // this counter only exists in debug
//
#if DEBUG // this counter only exists in debug
int
before
=
ConnectionMultiplexer
.
CollectedWithoutDispose
;
//
int before = ConnectionMultiplexer.CollectedWithoutDispose;
#endif
//
#endif
var
wr
=
new
WeakReference
(
muxer
);
var
wr
=
new
WeakReference
(
muxer
);
muxer
=
null
;
muxer
=
null
;
ForceGC
();
ForceGC
();
...
@@ -44,10 +44,10 @@ public void MuxerIsCollected()
...
@@ -44,10 +44,10 @@ public void MuxerIsCollected()
// should be collectable
// should be collectable
Assert
.
Null
(
wr
.
Target
);
Assert
.
Null
(
wr
.
Target
);
#if DEBUG // this counter only exists in debug
//
#if DEBUG // this counter only exists in debug
int
after
=
ConnectionMultiplexer
.
CollectedWithoutDispose
;
//
int after = ConnectionMultiplexer.CollectedWithoutDispose;
Assert
.
Equal
(
before
+
1
,
after
);
//
Assert.Equal(before + 1, after);
#endif
//
#endif
}
}
}
}
}
}
StackExchange.Redis/StackExchange.Redis.csproj
View file @
20da3edb
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.8
6
" />
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.8
7
" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="4.5.0" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="4.5.0" />
<PackageReference Include="System.IO.Pipelines" Version="4.5.0" />
<PackageReference Include="System.IO.Pipelines" Version="4.5.0" />
<PackageReference Include="System.Threading.Channels" Version="4.5.0" />
<PackageReference Include="System.Threading.Channels" Version="4.5.0" />
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment