The [OperationContract] Attribute
Methods that you wish to be used within the WCF framework must be attributed with the
[OperationContract] attribute, which may also be configured with various named properties.
Using the properties shown in Table 25-7, you are able to declare that a given method is intended
to be one-way in nature, supports asynchronous invocation, requires encrypted message data,
and so forth (again, many of these values may be ignored based on your binding selection).
Table 25-7.
Various Named Properties of the [OperationContract] Attribute
Do'stlaringiz bilan baham: |