WebContextBase 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.]

Provides context for the application.

Inheritance Hierarchy

System.Object
System.ServiceModel.DomainServices.Client.ApplicationServices.WebContextBase

Namespace: System.ServiceModel.DomainServices.Client.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Client.Web (in System.ServiceModel.DomainServices.Client.Web.dll)

Syntax

'Declaration
Public MustInherit Class WebContextBase _
    Implements INotifyPropertyChanged, IApplicationService, IApplicationLifetimeAware
'Usage
Dim instance As WebContextBase
public abstract class WebContextBase : INotifyPropertyChanged, 
    IApplicationService, IApplicationLifetimeAware
public ref class WebContextBase abstract : INotifyPropertyChanged, 
    IApplicationService, IApplicationLifetimeAware
[<AbstractClassAttribute>]
type WebContextBase =  
    class
        interface INotifyPropertyChanged
        interface IApplicationService
        interface IApplicationLifetimeAware
    end
public abstract class WebContextBase implements INotifyPropertyChanged, IApplicationService, IApplicationLifetimeAware

The WebContextBase type exposes the following members.

Constructors

Name Description
Protected method WebContextBase Initializes a new instance of the WebContextBase class.

Top

Properties

Name Description
Public property Authentication Gets or sets the authentication context for the application.
Public propertyStatic member Current Gets the context that is registered as a lifetime object with the current application.
Protected property User Gets a principal representing the authenticated identity.

Top

Methods

Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnPropertyChanged Raises a PropertyChanged event.
Protected method RaisePropertyChanged Raises a PropertyChanged event for the specified property.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

Name Description
Explicit interface implemetationPrivate method IApplicationLifetimeAwareExited Called by an application immediately after the Application.Exit event occurs.
Explicit interface implemetationPrivate method IApplicationLifetimeAwareExiting Called by an application immediately before the Application.Exit event occurs.
Explicit interface implemetationPrivate event INotifyPropertyChanged.PropertyChanged Occurs when a property value changes.
Explicit interface implemetationPrivate method IApplicationLifetimeAwareStarted Called by an application immediately after the Application.Startup event occurs.
Explicit interface implemetationPrivate method IApplicationLifetimeAwareStarting Called by an application immediately before the Application.Startup event occurs.
Explicit interface implemetationPrivate method IApplicationServiceStartService Starts the context as an application service.
Explicit interface implemetationPrivate method IApplicationServiceStopService Stops the context as an application service.

Top

Remarks

This context makes services and other values available for consumption from code and XAML.

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.Client.ApplicationServices Namespace