C# Class OnlineVideos.Sites.WebBrowserPlayerService.ServiceImplementation.WebBrowserPlayerCallbackService

Inheritance: IWebBrowserPlayerCallbackService
Mostra file Open project: offbyoneBB/mp-onlinevideos2

Public Methods

Method Description
LogError ( Exception exceptionToLog ) : void

Request that the client logs an error

LogInfo ( string message ) : void

Request that the client logs an info message

OnBrowserClosing ( ) : void

Let the client know we're closing

SendKeyPress ( int keyPressed ) : void

Send the key press to all active callback listeners

SendWndProc ( Message msg ) : bool

Send the wndproc to all active callback listeners, return true if any listener returned true

Subscribe ( ) : bool

New client is subscribing to the callback service

Unsubscribe ( ) : bool

Client is unsubscribing from the callback service

Private Methods

Method Description
GetActiveCallbacks ( ) : List

Maintain the list of active subscribers

Method Details

LogError() public static method

Request that the client logs an error
public static LogError ( Exception exceptionToLog ) : void
exceptionToLog System.Exception
return void

LogInfo() public static method

Request that the client logs an info message
public static LogInfo ( string message ) : void
message string
return void

OnBrowserClosing() public static method

Let the client know we're closing
public static OnBrowserClosing ( ) : void
return void

SendKeyPress() public static method

Send the key press to all active callback listeners
public static SendKeyPress ( int keyPressed ) : void
keyPressed int
return void

SendWndProc() public static method

Send the wndproc to all active callback listeners, return true if any listener returned true
public static SendWndProc ( Message msg ) : bool
msg System.Windows.Forms.Message
return bool

Subscribe() public method

New client is subscribing to the callback service
public Subscribe ( ) : bool
return bool

Unsubscribe() public method

Client is unsubscribing from the callback service
public Unsubscribe ( ) : bool
return bool