Class JsonRpcIgnoreAttribute
- Namespace
- StreamJsonRpc
- Assembly
- StreamJsonRpc.dll
Attribute which identifies methods that should not be invokable over RPC.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class JsonRpcIgnoreAttribute : Attribute
- Inheritance
-
JsonRpcIgnoreAttribute
- Inherited Members
Remarks
When adding an RPC target object via AddLocalRpcTarget(object) or other APIs, all public methods on the object default to being exposed to invocation by the client. When AllowNonPublicInvocation is set, even more methods are exposed. Applying this attribute to any method will ensure it can never be invoked directly by the RPC client.
If JsonRpcMethodAttribute and JsonRpcIgnoreAttribute are applied to the same method, an exception will be thrown at the time of adding the object as an RPC target.