2 out of 3 rated this helpful - Rate this topic

WebContextBase Class

WCF RIA Services

[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.

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)
public abstract class WebContextBase : INotifyPropertyChanged, 
	IApplicationService, IApplicationLifetimeAware

The WebContextBase type exposes the following members.

  Name Description
Protected method WebContextBase Initializes a new instance of the WebContextBase class.
Top
  Name Description
Public property Authentication Gets or sets the authentication context for the application.
Public property Static 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
  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
  Name Description
Explicit interface implemetation Private method IApplicationLifetimeAwareExited Called by an application immediately after the Application.Exit event occurs.
Explicit interface implemetation Private method IApplicationLifetimeAwareExiting Called by an application immediately before the Application.Exit event occurs.
Explicit interface implemetation Private event INotifyPropertyChanged.PropertyChanged Occurs when a property value changes.
Explicit interface implemetation Private method IApplicationLifetimeAwareStarted Called by an application immediately after the Application.Startup event occurs.
Explicit interface implemetation Private method IApplicationLifetimeAwareStarting Called by an application immediately before the Application.Startup event occurs.
Explicit interface implemetation Private method IApplicationServiceStartService Starts the context as an application service.
Explicit interface implemetation Private method IApplicationServiceStopService Stops the context as an application service.
Top

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)