Export (0) Print
Expand All

WebAuthenticationService 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 an abstract extension of the AuthenticationService that interacts with a DomainContext generated from a domain service implementing IAuthentication<T>.

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

public abstract class WebAuthenticationService : AuthenticationService

The WebAuthenticationService type exposes the following members.

  NameDescription
Public propertyDomainContextGets or sets the domain context this service delegates authenticating, loading, and saving to.
Public propertyDomainContextTypeGets or sets the type of the domain context.
Public propertyIsBusyGets a value indicating whether an asynchronous operation is in progress. (Inherited from AuthenticationService.)
Public propertyIsLoadingUserGets a value indicating whether an asynchronous LoadUser operation is in progress. (Inherited from AuthenticationService.)
Public propertyIsLoggingInGets a value indicating whether an asynchronous Login operation is in progress. (Inherited from AuthenticationService.)
Public propertyIsLoggingOutGets a value indicating whether an asynchronous Logout operation is in progress. (Inherited from AuthenticationService.)
Public propertyIsSavingUserGets a value indicating whether an asynchronous SaveUser operation is in progress. (Inherited from AuthenticationService.)
Protected propertySupportsCancellationGets a value that indicates whether this service supports cancellation. (Overrides AuthenticationService.SupportsCancellation.)
Public propertyUserGets a principal representing the authenticated user. (Inherited from AuthenticationService.)
Top

  NameDescription
Protected methodBeginLoadUserBegins an asynchronous LoadUser operation. (Overrides AuthenticationService.BeginLoadUser(AsyncCallback, Object).)
Protected methodBeginLoginBegins an asynchronous Login operation. (Overrides AuthenticationService.BeginLogin(LoginParameters, AsyncCallback, Object).)
Protected methodBeginLogoutBegins an asynchronous Logout operation. (Overrides AuthenticationService.BeginLogout(AsyncCallback, Object).)
Protected methodBeginSaveUserBegins an asynchronous SaveUser operation. (Overrides AuthenticationService.BeginSaveUser(IPrincipal, AsyncCallback, Object).)
Protected methodCancelLoadUserCancels an asynchronous LoadUser operation. (Overrides AuthenticationService.CancelLoadUser(IAsyncResult).)
Protected methodCancelLoginCancels an asynchronous Login operation. (Overrides AuthenticationService.CancelLogin(IAsyncResult).)
Protected methodCancelLogoutCancels an asynchronous Logout operation. (Overrides AuthenticationService.CancelLogout(IAsyncResult).)
Protected methodCancelSaveUserCancels an asynchronous SaveUser operation. (Overrides AuthenticationService.CancelSaveUser(IAsyncResult).)
Protected methodCreateDefaultUserCreates a default user. (Overrides AuthenticationService.CreateDefaultUser().)
Protected methodEndLoadUserEnds an asynchronous LoadUser operation. (Overrides AuthenticationService.EndLoadUser(IAsyncResult).)
Protected methodEndLoginEnds an asynchronous Login operation. (Overrides AuthenticationService.EndLogin(IAsyncResult).)
Protected methodEndLogoutEnds an asynchronous Logout operation. (Overrides AuthenticationService.EndLogout(IAsyncResult).)
Protected methodEndSaveUserEnds an asynchronous SaveUser operation. (Overrides AuthenticationService.EndSaveUser(IAsyncResult).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodInitializeInitializes this authentication service.
Public methodLoadUser()Asynchronously loads the authenticated user from the server. (Inherited from AuthenticationService.)
Public methodLoadUser(Action<LoadUserOperation>, Object)Asynchronously loads the authenticated user from the server with specified callback method and user state. (Inherited from AuthenticationService.)
Public methodLogin(LoginParameters)Asynchronously authenticates and logs in to the server with the specified parameters. (Inherited from AuthenticationService.)
Public methodLogin(String, String)Asynchronously authenticates and logs in to the server with the specified user name and password. (Inherited from AuthenticationService.)
Public methodLogin(LoginParameters, Action<LoginOperation>, Object)Asynchronously authenticates and logs in to the server with the specified parameters, callback method, and user state. (Inherited from AuthenticationService.)
Public methodLogout(Boolean)Asynchronously logs out an authenticated user from the server with the specified value indicating whether an exception is thrown for errors. (Inherited from AuthenticationService.)
Public methodLogout(Action<LogoutOperation>, Object)Asynchronously logs out an authenticated user from the server with the specified callback method and user state. (Inherited from AuthenticationService.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnPropertyChangedRaises a PropertyChanged event. (Inherited from AuthenticationService.)
Protected methodRaisePropertyChangedRaises a PropertyChanged event for the specified property. (Inherited from AuthenticationService.)
Public methodSaveUser(Boolean)Asynchronously saves the authenticated user to the server with the specified value indicating whether an exception is thrown for errors. (Inherited from AuthenticationService.)
Public methodSaveUser(Action<SaveUserOperation>, Object)Asynchronously saves the authenticated user to the server with the specified callback method and user state. (Inherited from AuthenticationService.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public eventLoggedInOccurs when a new user is successfully logged in. (Inherited from AuthenticationService.)
Public eventLoggedOutOccurs when a user is successfully logged out. (Inherited from AuthenticationService.)
Top

  NameDescription
Explicit interface implemetationPrivate eventINotifyPropertyChanged.PropertyChangedOccurs every time a property value changes. (Inherited from AuthenticationService.)
Top

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