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

Commit ec3189f

Browse files
committed
Add call to overridable OnConnected()
1 parent 314b930 commit ec3189f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ServiceStack.Redis/RedisNativeClient_Utils.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,15 @@ private void Connect()
8484

8585
if (db != 0)
8686
SendExpectSuccess(Commands.Select, db.ToUtf8Bytes());
87-
87+
8888
var ipEndpoint = socket.LocalEndPoint as IPEndPoint;
8989
clientPort = ipEndpoint != null ? ipEndpoint.Port : -1;
9090
lastCommand = null;
9191
lastSocketException = null;
9292
LastConnectedAtTimestamp = Stopwatch.GetTimestamp();
9393

94+
OnConnected();
95+
9496
if (ConnectionFilter != null)
9597
{
9698
ConnectionFilter(this);
@@ -109,6 +111,10 @@ private void Connect()
109111
}
110112
}
111113

114+
public virtual void OnConnected()
115+
{
116+
}
117+
112118
protected string ReadLine()
113119
{
114120
var sb = new StringBuilder();

0 commit comments

Comments
 (0)