46 lines
764 B
Plaintext
46 lines
764 B
Plaintext
include::../description.adoc[]
|
|
|
|
include::../exceptions.adoc[]
|
|
|
|
== How to fix it
|
|
|
|
=== Code examples
|
|
|
|
==== Noncompliant code example
|
|
|
|
[source,csharp,diff-id=1,diff-type=noncompliant]
|
|
----
|
|
[ServiceContract]
|
|
interface IMyService
|
|
{
|
|
[OperationContract(IsOneWay = true)]
|
|
int SomethingHappened(int parameter); // Noncompliant
|
|
}
|
|
----
|
|
|
|
==== Compliant solution
|
|
|
|
[source,csharp,diff-id=1,diff-type=compliant]
|
|
----
|
|
[ServiceContract]
|
|
interface IMyService
|
|
{
|
|
[OperationContract(IsOneWay = true)]
|
|
void SomethingHappened(int parameter);
|
|
}
|
|
----
|
|
|
|
include::../resources.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
include::../highlighting.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|