다음을 통해 공유


IAuthentication 제네릭 인터페이스

인증 도메인을 캡슐화하는 도메인 서비스 인스턴스에 대한 메서드를 정의합니다.

네임스페이스: System.ServiceModel.DomainServices.Server.ApplicationServices
어셈블리: system.servicemodel.domainservices.server.dll의 System.ServiceModel.DomainServices.Server

사용법

‘사용 방법
Dim instance As IAuthentication(Of T)

구문

‘선언
<AuthenticationServiceAttribute> _
Public Interface IAuthentication(Of T As IUser)
[AuthenticationServiceAttribute] 
public interface IAuthentication<T> where T : IUser
[AuthenticationServiceAttribute] 
generic<typename T> where T : IUser
public interface class IAuthentication

GenericParameters

  • T
    사용자 엔터티의 형식입니다.

설명

이 인터페이스를 구현하는 도메인 서비스는 클라이언트와 서버 둘 다에서 사용자를 채우는 데 사용됩니다. WebAuthenticationService 클래스는 이 인터페이스를 구현하는 도메인 서비스에 대해 생성된 DomainContext에서 작동합니다.

UpdateUser 메서드는 업데이트 메서드로 지정되며, 클라이언트에서 SubmitChanges 메서드를 호출하여 호출됩니다. 이 구현에서는 응용 프로그램을 개발할 때 고려할 중요한 사항이 있습니다. SaveUser를 호출하여 UpdateUser 메서드를 호출하는 경우 DomainContext에서 발생한 모든 변경 내용을 전송하고 다른 업데이트 메서드를 호출할 수 있습니다. 반대로, DomainContext에서 다른 업데이트 메서드를 호출하는 경우 도메인 컨텍스트의 모든 변경 내용을 전송하고 UpdateUser 메서드를 호출할 수 있습니다.

플랫폼

개발 플랫폼

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 및 Windows 2000

대상 플랫폼

참고 항목

참조

IAuthentication 멤버
System.ServiceModel.DomainServices.Server.ApplicationServices 네임스페이스