StreamLink.NET  7.1.5-7.1.5-3946-4e293d0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | List of all members
Caplin.StreamLink.ICredentialsProvider Interface Reference

This interface defines how to provide the user credentials that StreamLink uses to log into a Liberator server. More...

Public Member Functions

void Cancel ()
 This method is called by the StreamLink library when it needs to cancel a request to get More...
 
void OnCredentialsRequired (Caplin.StreamLink.ICredentialsReceiver listener)
 Gets the credentials used to log in to the Liberator. More...
 

Detailed Description

This interface defines how to provide the user credentials that StreamLink uses to log into a Liberator server.

If your StreamLink application does not use one of the implicit CredentialProvider implementations supplied with StreamLink, you must define your own class that implements this interface, along with an implementation of the ICredentials interface (which is passed to the ICredentialsReceiver instance provided).

Member Function Documentation

void Caplin.StreamLink.ICredentialsProvider.Cancel ( )

This method is called by the StreamLink library when it needs to cancel a request to get

** credentials.

void Caplin.StreamLink.ICredentialsProvider.OnCredentialsRequired ( Caplin.StreamLink.ICredentialsReceiver  listener)

Gets the credentials used to log in to the Liberator.

  • This method will be called by the StreamLink library to trigger an attempt to retrieve credentials.
  • This method should not block. If retrieving the credentials involves communicating with an external
  • service then asynchronous methods should be used and control returned to the StreamLink library as quickly
  • as possible.
  • Parameters
    listenerInterface to call back on that provides StreamLink with either the credentials or an error indication.

Generated on Tue Mar 24 2020 11:57:49 for StreamLink.NET