2020-06-30 12:48:39 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
2023-06-30 14:10:09 +02:00
|
|
|
include::../exceptions.adoc[]
|
|
|
|
|
|
|
|
== How to fix it
|
2020-06-30 12:48:39 +02:00
|
|
|
|
2023-06-30 14:10:09 +02:00
|
|
|
=== Code examples
|
|
|
|
|
|
|
|
==== Noncompliant code example
|
|
|
|
|
|
|
|
[source,vbnet,diff-id=1,diff-type=noncompliant]
|
2020-06-30 12:48:39 +02:00
|
|
|
----
|
|
|
|
<ServiceContract>
|
|
|
|
Interface IMyService
|
|
|
|
<OperationContract(IsOneWay:=True)>
|
|
|
|
Function SomethingHappened(ByVal parameter As Integer) As Integer ' Noncompliant
|
|
|
|
End Interface
|
|
|
|
----
|
|
|
|
|
2023-06-30 14:10:09 +02:00
|
|
|
==== Compliant solution
|
2020-06-30 12:48:39 +02:00
|
|
|
|
2023-08-08 14:23:00 +02:00
|
|
|
[source,vbnet,diff-id=1,diff-type=compliant]
|
2020-06-30 12:48:39 +02:00
|
|
|
----
|
|
|
|
<ServiceContract>
|
|
|
|
Interface IMyService
|
|
|
|
<OperationContract(IsOneWay:=True)>
|
|
|
|
Sub SomethingHappened(ByVal parameter As Integer)
|
|
|
|
End Interface
|
|
|
|
----
|
|
|
|
|
2023-06-30 14:10:09 +02:00
|
|
|
include::../resources.adoc[]
|
2023-06-22 10:38:01 +02:00
|
|
|
|
2023-06-30 14:10:09 +02:00
|
|
|
ifdef::env-github,rspecator-view,env-vscode[]
|
2021-09-20 15:38:42 +02:00
|
|
|
|
|
|
|
'''
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::../message.adoc[]
|
|
|
|
|
|
|
|
include::../highlighting.adoc[]
|
|
|
|
|
2023-06-30 14:10:09 +02:00
|
|
|
endif::env-github,rspecator-view,env-vscode[]
|