DomainServiceContext Class

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Represents the execution environment for the operations performed by a DomainService.

Inheritance Hierarchy

System.Object
  System.ServiceModel.DomainServices.Server.DomainServiceContext

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Public Class DomainServiceContext _
    Implements IServiceProvider
'Usage
Dim instance As DomainServiceContext
public class DomainServiceContext : IServiceProvider
public ref class DomainServiceContext : IServiceProvider
type DomainServiceContext =  
    class
        interface IServiceProvider
    end
public class DomainServiceContext implements IServiceProvider

The DomainServiceContext type exposes the following members.

Constructors

  Name Description
Public method DomainServiceContext Initializes a new instance of the DomainServiceContext class.

Top

Properties

  Name Description
Public property Operation Gets the operation that is being executed.
Public property OperationType Gets the type of operation that is being executed.
Public property User Gets the user for this context instance.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetService Gets the service object of the specified type.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.ServiceModel.DomainServices.Server Namespace