Instance Management

  1. Prefer the per-call instance mode.

  2. Avoid a sessionful service.

  3. If selecting SessionMode.Required on the contract, always explicitly set service instancing to InstanceContextMode.PerSession.

  4. If selecting SessionMode.NotAllowed on the contract, always configure the service instancing to InstanceContextMode.PerCall.

  5. Do not mix sessionful contracts and per-call contracts on the same service.

  6. Avoid a singleton unless you have a natural singleton.

  7. Use ordered delivery with a sessionful service.

  8. Avoid instance deactivation with a sessionful service.

  9. Avoid demarcating operations.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.140.206