ReadOnlyAttribute
class
Namespace: Orleans.Concurrency
The ReadOnly attribute is used to mark methods that do not modify the state of a grain.
Marking methods as ReadOnly allows the run-time system to perform a number of optimizations that may significantly improve the performance of your application.
public sealed class ReadOnlyAttribute : AttributeRemarks
Apply this attribute to a grain interface method declaration. Read-only requests can interleave with other read-only requests. Writable requests wait until all active read-only requests complete unless another interleaving policy permits them to overlap.
