Skip to content

Possibly incorrect or confusing reference in System.ServiceModel.InstanceContextMode doc #4656

Closed

Description

@ghogen

Regarding

https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.instancecontextmode?view=netframework-4.7.1

On http://msdn.microsoft.com/en-us/library/system.servicemodel.instancecontextmode%28v=vs.110%29.aspx, the sentence "If the channel does not create a session this value behaves as if it were PerCall." does not make sense in the "PerCall" row.

(This is originally a customer issue filed via the Connect channel, in the internal database DEVDIV bug # 130168.)

Activity

  1. mairaw commented on Mar 19, 2018

    @mairaw
    Contributor

    @zhenlan can you help with this bug? Should this say PerSession instead?

  2. zhenlan commented on Mar 19, 2018

    @zhenlan
    Member

    Indeed a bit confusing. @mconnew can you please confirm?

  3. mconnew commented on Mar 19, 2018

    @mconnew
    Member

    This is what it should read:

    Member name Description
    PerCall A new InstanceContext object is created prior to and recycled subsequent to each call.
    PerSession A new InstanceContext object is created for each session. If the channel does not create a session this value behaves as if it were PerCall.
    Single Only one InstanceContext object is used for all incoming calls and is not recycled subsequent to the calls. If a service object does not exist, one is created.
  4. self-assigned this
    on Mar 19, 2018
  5. added this to the milestone on Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions