SoapCore icon indicating copy to clipboard operation
SoapCore copied to clipboard

Question: How to use a custom attribute on a SoapCore service class?

Open raminmjj opened this issue 1 year ago • 1 comments

I want to create a custom attribute to apply to a SoapCore service class as a filter, specifically for implementing custom authorization. How can I achieve this?

raminmjj avatar Sep 10 '24 12:09 raminmjj

You could implement your own IAsyncMessageFilter. See https://github.com/DigDes/SoapCore/blob/a2bcb47e8924efe44a245919a8b48e9101f4dd90/src/SoapCore/WsMessageFilter.cs#L13

Another option would be to use a ISoapMessageProcessor (https://github.com/DigDes/SoapCore?tab=readme-ov-file#using-isoapmessageprocessor) to implement the custom authorization

andersjonsson avatar Sep 25 '24 08:09 andersjonsson

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 26 '24 02:10 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 10 '24 02:11 github-actions[bot]