Questions tagged [iservicebehaviors]
6 questions
2
votes
0 answers
Implementing IErrorHandler using class level Attributes in WCF
Had no luck with getting it working via config files, so decided to attempt to go the more robust route of doign it via class level attributes. If I can get this working it is clearly a great way of wrapping exceptions in Faults in the service layer…

John Nicholas
- 4,778
- 4
- 31
- 50
1
vote
2 answers
Modify returnvalue in WCF operation
I want to ensure that all our operations that return datasets in our WCF has .ExcludedSchema value set in Property SchemaSerializationMode.
Can I do this with a CustomBehavior?
I tried to implement a CustomDispatchBehavior and add a…

Martin
- 1,521
- 3
- 18
- 35
1
vote
0 answers
Invoking WCF IServiceBehavior and IOperationBehavior without calling a method
I'd like to be able to add a couple of behaviors without having to call a method forcing them to be to used. A typical example is via an [InvokeErrorSupport] attribute whose purpose would be to fire off a test e-mail when deploying a service to…

thisleejones
- 703
- 1
- 7
- 14
0
votes
0 answers
How to use IErrorHandler and IServiceBehavior .Net Standard 2.1
How can I use IErrorHandler and IServiceBehavior in a .NET Standard 2.1 project?
I tried to add the nuget System.ServiceModel.Primitives but still doesn't work, and I also can't find anywhere how to do it.

Paulo
- 11
- 2
0
votes
1 answer
EndPointDispatcher and Attributes set on the service or service contract
I am using WCF and IServiceBehaviors, and adding EndPointDispatchers.
What I would like to check is that on the EndPointDispatcher is there any way of check to see which attributes have been set on the Service or Service Contract?
The reason for…

Coppermill
- 6,676
- 14
- 67
- 92
0
votes
1 answer
WCF Custom Error Handler to conditionally return xml or json?
The open311 protocol requires support for endpoints in the following format:
domain/requests.xml
domain/requests.json
The first endpoint accepts xml requests, the second json requests.
The protocol further specifies errors should be returned in…

Corey Alix
- 2,694
- 2
- 27
- 38