Repository navigation
Fixed matching URL path to service type in Extensibility.AuthorizeOperationMessageProcessor - #1140
Conversation
When the dictionary on the constructor of Extensibility.AuthorizeOperationMessageProcessor had its keys not all lowercase, it couldn't find the service type and, consequently, the operation
When the dictionary on the constructor of Extensibility.AuthorizeOperationMessageProcessor had its keys not all lowercase, it couldn't find the service type and, consequently, the operation
|
There is an option to make path insensitive (SoapCoreOption.CaseInsensitivePath). Would it be a good idea to use that to decide if comparison should be case-insensitive? Dictionary accepts a comparer in the constructor |
|
Thank you for pointing me to the option of supplying a comparer to Dictionary<,>. I removed the foreach that made each key lowercase and instead used the comparer. |
|
Sorry for not getting back to you. I haven't had time to work on open source for a while. I think that you should check the setting SoapCoreOption.CaseInsensitivePath and use that to decide whether to use Other than that I think it looks good! |
… that gets SoapCoreOptions Added separate constructor to maintain possible backwards compatibility; used options to decide whether to perform case insensitive comparison of paths
…e CaseInsensitivePath
|
I now notice you mentioned deciding whether to do case insensitive comparison based on the value of SoapCoreOption.CaseInsensitivePath in the first comment as well, sorry about that. I added a constructor that takes an options configuring Action, what I probably should have done the first time around. |
|
Thanks! |
Previously, the caller of the constructor had the responsibility to make the path for the service to be lowercase. I modified the constructor to make the path lowercase as it is not obvious to the caller that this is necessary.