C# 클래스 TLSharp.Core.Session

파일 보기 프로젝트 열기: sochix/TLSharp 1 사용 예제들

공개 메소드들

메소드 설명
FromBytes ( byte buffer, ISessionStore store, string sessionUserId ) : Session
GetNewMessageId ( ) : long
Save ( ) : void
ToBytes ( ) : byte[]
TryLoadOrCreateNew ( ISessionStore store, string sessionUserId ) : Session

비공개 메소드들

메소드 설명
GenerateRandomUlong ( ) : ulong
Session ( ISessionStore store ) : System

메소드 상세

FromBytes() 공개 정적인 메소드

public static FromBytes ( byte buffer, ISessionStore store, string sessionUserId ) : Session
buffer byte
store ISessionStore
sessionUserId string
리턴 Session

GetNewMessageId() 공개 메소드

public GetNewMessageId ( ) : long
리턴 long

Save() 공개 메소드

public Save ( ) : void
리턴 void

ToBytes() 공개 메소드

public ToBytes ( ) : byte[]
리턴 byte[]

TryLoadOrCreateNew() 공개 정적인 메소드

public static TryLoadOrCreateNew ( ISessionStore store, string sessionUserId ) : Session
store ISessionStore
sessionUserId string
리턴 Session