C# 클래스 VisualCaptchaNet.Core.VisualCaptcha

파일 보기 프로젝트 열기: terabytenz/VisualCaptcha.Net 1 사용 예제들

공개 메소드들

메소드 설명
Generate ( int numberOfOptions = DefaultNumberOfImages ) : void
GetAudioMimeType ( string type ) : string
GetImageMimeType ( int index, bool isRetina ) : string
StreamAudio ( string fileType ) : FileStream
StreamImage ( int index, bool isRetina ) : FileStream
ValidateAnswer ( NameValueCollection form ) : CaptchaState
ValidateAudio ( string sentOption ) : bool
ValidateImage ( string sentOption ) : bool
VisualCaptcha ( ISessionProvider sessionProvider, string mediaPath, string @namespace = "visualcaptcha", List images = null, List audios = null ) : System.Collections.Generic

비공개 메소드들

메소드 설명
GetFileStream ( string audioFilePath ) : FileStream
LoadAudioOptions ( ) : List
LoadImageOptions ( ) : List

메소드 상세

Generate() 공개 메소드

public Generate ( int numberOfOptions = DefaultNumberOfImages ) : void
numberOfOptions int
리턴 void

GetAudioMimeType() 공개 메소드

public GetAudioMimeType ( string type ) : string
type string
리턴 string

GetImageMimeType() 공개 메소드

public GetImageMimeType ( int index, bool isRetina ) : string
index int
isRetina bool
리턴 string

StreamAudio() 공개 메소드

public StreamAudio ( string fileType ) : FileStream
fileType string
리턴 System.IO.FileStream

StreamImage() 공개 메소드

public StreamImage ( int index, bool isRetina ) : FileStream
index int
isRetina bool
리턴 System.IO.FileStream

ValidateAnswer() 공개 메소드

public ValidateAnswer ( NameValueCollection form ) : CaptchaState
form System.Collections.Specialized.NameValueCollection
리턴 CaptchaState

ValidateAudio() 공개 메소드

public ValidateAudio ( string sentOption ) : bool
sentOption string
리턴 bool

ValidateImage() 공개 메소드

public ValidateImage ( string sentOption ) : bool
sentOption string
리턴 bool

VisualCaptcha() 공개 메소드

public VisualCaptcha ( ISessionProvider sessionProvider, string mediaPath, string @namespace = "visualcaptcha", List images = null, List audios = null ) : System.Collections.Generic
sessionProvider ISessionProvider
mediaPath string
@namespace string
images List
audios List
리턴 System.Collections.Generic