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
d86aa4ca
Commit
d86aa4ca
authored
Aug 15, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conditionalize a bunch of things
parent
4c990714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
RedisSubscriber.cs
StackExchange.Redis/RedisSubscriber.cs
+7
-5
No files found.
StackExchange.Redis/RedisSubscriber.cs
View file @
d86aa4ca
...
@@ -258,35 +258,37 @@ internal string GetConnectionName(EndPoint endPoint, ConnectionType connectionTy
...
@@ -258,35 +258,37 @@ internal string GetConnectionName(EndPoint endPoint, ConnectionType connectionTy
internal
event
Action
<
EndPoint
,
ConnectionType
>
Connecting
;
internal
event
Action
<
EndPoint
,
ConnectionType
>
Connecting
;
internal
event
Action
<
EndPoint
,
ConnectionType
>
Resurrecting
;
internal
event
Action
<
EndPoint
,
ConnectionType
>
Resurrecting
;
[
Conditional
(
"VERBOSE"
)]
internal
void
OnMessageFaulted
(
Message
msg
,
Exception
fault
,
[
CallerMemberName
]
string
origin
=
default
,
[
CallerFilePath
]
string
path
=
default
,
[
CallerLineNumber
]
int
lineNumber
=
default
)
internal
void
OnMessageFaulted
(
Message
msg
,
Exception
fault
,
[
CallerMemberName
]
string
origin
=
default
,
[
CallerFilePath
]
string
path
=
default
,
[
CallerLineNumber
]
int
lineNumber
=
default
)
{
{
MessageFaulted
?.
Invoke
(
msg
?.
CommandAndKey
,
fault
,
$"
{
origin
}
(
{
path
}
#
{
lineNumber
}
)"
);
MessageFaulted
?.
Invoke
(
msg
?.
CommandAndKey
,
fault
,
$"
{
origin
}
(
{
path
}
#
{
lineNumber
}
)"
);
}
}
[
Conditional
(
"VERBOSE"
)]
internal
void
OnInfoMessage
(
string
message
)
internal
void
OnInfoMessage
(
string
message
)
{
{
InfoMessage
?.
Invoke
(
message
);
InfoMessage
?.
Invoke
(
message
);
}
}
[
Conditional
(
"VERBOSE"
)]
internal
void
OnClosing
(
bool
complete
)
internal
void
OnClosing
(
bool
complete
)
{
{
Closing
?.
Invoke
(
complete
);
Closing
?.
Invoke
(
complete
);
}
}
[
Conditional
(
"VERBOSE"
)]
internal
void
OnConnecting
(
EndPoint
endpoint
,
ConnectionType
connectionType
)
internal
void
OnConnecting
(
EndPoint
endpoint
,
ConnectionType
connectionType
)
{
{
Connecting
?.
Invoke
(
endpoint
,
connectionType
);
Connecting
?.
Invoke
(
endpoint
,
connectionType
);
}
}
[
Conditional
(
"VERBOSE"
)]
internal
void
OnResurrecting
(
EndPoint
endpoint
,
ConnectionType
connectionType
)
internal
void
OnResurrecting
(
EndPoint
endpoint
,
ConnectionType
connectionType
)
{
{
Resurrecting
.
Invoke
(
endpoint
,
connectionType
);
Resurrecting
.
Invoke
(
endpoint
,
connectionType
);
}
}
[
Conditional
(
"VERBOSE"
)]
internal
void
OnPreTransactionExec
(
Message
message
)
internal
void
OnPreTransactionExec
(
Message
message
)
{
{
PreTransactionExec
?.
Invoke
(
message
.
CommandAndKey
);
PreTransactionExec
?.
Invoke
(
message
.
CommandAndKey
);
}
}
[
Conditional
(
"VERBOSE"
)]
internal
void
OnTransactionLog
(
string
message
)
internal
void
OnTransactionLog
(
string
message
)
{
{
TransactionLog
?.
Invoke
(
message
);
TransactionLog
?.
Invoke
(
message
);
...
...
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