Cocktail Help Reference
AuthenticationService Class
Members  Example  See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace : AuthenticationService Class



Glossary Item Box

Default implementation of an authentication service. Subclass if different behavior is desired, otherwise use as-is.

Object Model

AuthenticationService Class

Syntax

Visual Basic (Declaration) 
Public Class AuthenticationService 
   Implements IAuthenticationService, IdeaBlade.Core.IHideObjectMembers, IdeaBlade.EntityModel.Security.IAuthenticationContext 
Visual Basic (Usage)Copy Code
Dim instance As AuthenticationService
C# 
public class AuthenticationService : IAuthenticationService, IdeaBlade.Core.IHideObjectMembers, IdeaBlade.EntityModel.Security.IAuthenticationContext  
C++/CLI 
public ref class AuthenticationService : public IAuthenticationService, IdeaBlade.Core.IHideObjectMembers, IdeaBlade.EntityModel.Security.IAuthenticationContext  

Example

Demonstrates how to enable the authentication service in an application.
C#Copy Code
public class AppBootstrapper : FrameworkBootstrapper<MainFrameViewModel>
                {
                protected override void PrepareCompositionContainer(CompositionBatch batch)
                {
                base.PrepareCompositionContainer(batch);
             
                // Inject the authentication service into the framework.
                batch.AddExportedValue<IAuthenticationService>(new AuthenticationService());
                }
                }

Inheritance Hierarchy

System.Object
   Cocktail.AuthenticationService

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.