ShopPlatform.Web 1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
로딩중...
검색중...
일치하는것 없음
ShopPlatform.Services.ShopCustomerSession 클래스 참조sealed

더 자세히 ...

Public 멤버 함수

void Login (ShopUser user)
void LoginFromCommonUser (ShopCurrentUser user, ShopCustomerProfile? profile)
void Logout ()

속성

ShopUserUser [get, private set]
bool IsLoggedIn [get]

상세한 설명

Blazor 회로 수명 동안 유지되는 고객 세션 (Scoped).

ShopCustomerSession.cs 파일의 13 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ Login()

void ShopPlatform.Services.ShopCustomerSession.Login ( ShopUser user)
inline

Login 작업을 수행합니다.

매개변수
useruser에 사용할 ShopUser 값입니다.

ShopCustomerSession.cs 파일의 50 번째 라인에서 정의되었습니다.

50=> User = user;

다음을 참조함 : User.

◆ LoginFromCommonUser()

void ShopPlatform.Services.ShopCustomerSession.LoginFromCommonUser ( ShopCurrentUser user,
ShopCustomerProfile? profile )
inline

Login From Common User 작업을 수행합니다.

매개변수
useruser에 사용할 ShopCurrentUser 값입니다.
profileprofile에 사용할 ShopCustomerProfile? 값입니다.

ShopCustomerSession.cs 파일의 75 번째 라인에서 정의되었습니다.

76 {
77 User = new ShopUser
78 {
79 Email = profile?.Email ?? user.Email,
80 Name = !string.IsNullOrWhiteSpace(profile?.Name)
81 ? profile.Name
82 : !string.IsNullOrWhiteSpace(user.DisplayName) ? user.DisplayName : user.Email,
83 Phone = profile?.Phone ?? string.Empty,
84 Address = profile?.Address ?? string.Empty
85 };
86 }

다음을 참조함 : ShopPlatform.Models.ShopCustomerProfile.Address, ShopPlatform.Models.ShopCustomerProfile.Email, ShopPlatform.Models.ShopCustomerProfile.Phone, ShopPlatform.Services.ShopCurrentUser(), User.

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ Logout()

void ShopPlatform.Services.ShopCustomerSession.Logout ( )
inline

Logout 작업을 수행합니다.

ShopCustomerSession.cs 파일의 96 번째 라인에서 정의되었습니다.

96=> User = null;

다음을 참조함 : User.

속성 문서화

◆ IsLoggedIn

bool ShopPlatform.Services.ShopCustomerSession.IsLoggedIn
get

Is Logged In 값을 가져옵니다.

ShopCustomerSession.cs 파일의 32 번째 라인에서 정의되었습니다.

◆ User

ShopUser? ShopPlatform.Services.ShopCustomerSession.User
getprivate set

User 값을 가져오거나 설정합니다.

ShopCustomerSession.cs 파일의 23 번째 라인에서 정의되었습니다.

23{ get; private set; }

다음에 의해서 참조됨 : Login(), LoginFromCommonUser(), Logout().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: