Thoughts on moving UniqueName to settings? #15
schneidenbach
started this conversation in
Ideas
Replies: 2 comments 6 replies
-
Hi Spencer,
thank you for reaching me out and for your appreciation.
Your suggestion sounds very reasonable to me, too. It would be great if you
will Create a PR. It would be nice to do it without a breaking change.
Do you already have a good name for this setting eg.
SqlTableDependencySettings.Scope(Unique)Name?
Regards, Tomas.
po 12. 7. 2021 o 22:13 Spencer Schneidenbach ***@***.***>
napísal(a):
… Hey @tomasfabian <https://github.com/tomasfabian>, love your library here.
I'm using SqlTableDependencyProvider to listen for changes on a specific
table using the UniqueScope lifetime scope. I noted that this specific
scope is designed to persist between application restarts, so I started
digging into how the subscription names itself and found the following line:
https://github.com/tomasfabian/Joker/blob/08b1567c66fde3e774f53ecd5c3d7f61c971251b/SqlTableDependency.Extensions/SqlTableDependencyWithReconnection.cs#L84
In order to override this setting, I need to:
- inherit from SqlTableDependencyWithUniqueScope and override the
UniqueName prop
- override CreateSqlTableDependency in SqlTableDependencyProvider and
pass this SqlTableDependencyWithUniqueScope in instead
It's not a ton of friction, but I was curious to know how you felt about
exposing the UniqueName property in SqlTableDependencySettings instead? If
so, I'll issue a PR with that change.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABG63GRD7X7SRFRLI4UP6GDTXNEFZANCNFSM5AHREPDA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
hi @schneidenbach, Thank you Tomas |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @tomasfabian, love your library here.
I'm using SqlTableDependencyProvider to listen for changes on a specific table using the UniqueScope lifetime scope. I noted that this specific scope is designed to persist between application restarts, so I started digging into how the subscription names itself and found the following line:
Joker/SqlTableDependency.Extensions/SqlTableDependencyWithReconnection.cs
Line 84 in 08b1567
In order to override this setting, I need to:
It's not a ton of friction, but I was curious to know how you felt about exposing the UniqueName property in SqlTableDependencySettings instead? If so, I'll issue a PR with that change.
Beta Was this translation helpful? Give feedback.
All reactions