You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="server">The adress of the server. If <see cref="IPAddress.Any"/> is specified it will return the sum of all server stat values.</param>
61
61
/// <param name="item">The stat to be returned</param>
62
62
/// <returns>The value of the specified stat item</returns>
63
-
publiclongGetValue(IPEndPointserver,StatItemitem)
63
+
publiclongGetValue(EndPointserver,StatItemitem)
64
64
{
65
65
// asked for a specific server
66
-
if(server.Address!=IPAddress.Any)
66
+
if(serveris not IPEndPoint||((IPEndPoint)server).Address!=IPAddress.Any)
67
67
{
68
68
// error check
69
69
stringtmp=GetRaw(server,item);
@@ -85,7 +85,7 @@ public long GetValue(IPEndPoint server, StatItem item)
85
85
longretval=0;
86
86
87
87
// sum & return
88
-
foreach(IPEndPointepin_results.Keys)
88
+
foreach(EndPointepin_results.Keys)
89
89
{
90
90
retval+=GetValue(ep,item);
91
91
}
@@ -98,7 +98,7 @@ public long GetValue(IPEndPoint server, StatItem item)
98
98
/// </summary>
99
99
/// <param name="server">The adress of the server</param>
100
100
/// <returns>The version of memcached</returns>
101
-
publicVersionGetVersion(IPEndPointserver)
101
+
publicVersionGetVersion(EndPointserver)
102
102
{
103
103
stringversion=GetRaw(server,StatItem.Version);
104
104
if(String.IsNullOrEmpty(version))
@@ -112,7 +112,7 @@ public Version GetVersion(IPEndPoint server)
112
112
/// </summary>
113
113
/// <param name="server">The adress of the server</param>
114
114
/// <returns>A value indicating how long the server is running</returns>
115
-
publicTimeSpanGetUptime(IPEndPointserver)
115
+
publicTimeSpanGetUptime(EndPointserver)
116
116
{
117
117
stringuptime=GetRaw(server,StatItem.Uptime);
118
118
if(String.IsNullOrEmpty(uptime))
@@ -131,7 +131,7 @@ public TimeSpan GetUptime(IPEndPoint server)
131
131
/// <param name="server">The adress of the server</param>
132
132
/// <param name="key">The name of the stat value</param>
133
133
/// <returns>The value of the stat item</returns>
134
-
publicstringGetRaw(IPEndPointserver,stringkey)
134
+
publicstringGetRaw(EndPointserver,stringkey)
135
135
{
136
136
Dictionary<string,string>serverValues;
137
137
stringretval;
@@ -159,7 +159,7 @@ public string GetRaw(IPEndPoint server, string key)
159
159
/// <param name="server">The adress of the server</param>
160
160
/// <param name="item">The stat value to be returned</param>
0 commit comments