C# Class PeerCastStation.Core.SourceConnectionBase

Inheritance: ISourceConnection
Show file Open project: kumaryu/peercaststation Class Usage Examples

Protected Properties

Property Type Description
connection SourceConnectionClient

Public Methods

Method Description
GetConnectionInfo ( ) : ConnectionInfo
Post ( Host from, Atom packet ) : void
Run ( ) : Task
SourceConnectionBase ( PeerCastStation.Core.PeerCast peercast, Channel channel, Uri source_uri ) : System
Stop ( ) : void
Stop ( StopReason reason ) : void

Protected Methods

Method Description
DoClose ( SourceConnectionClient connection ) : Task
DoConnect ( Uri source, CancellationToken cancellationToken ) : Task
DoPost ( Host from, Atom packet ) : void
DoProcess ( CancellationToken cancellationToken ) : Task
OnStarted ( ) : void
OnStopped ( ) : void

Method Details

DoClose() protected method

protected DoClose ( SourceConnectionClient connection ) : Task
connection SourceConnectionClient
return Task

DoConnect() protected abstract method

protected abstract DoConnect ( Uri source, CancellationToken cancellationToken ) : Task
source System.Uri
cancellationToken System.Threading.CancellationToken
return Task

DoPost() protected method

protected DoPost ( Host from, Atom packet ) : void
from Host
packet Atom
return void

DoProcess() protected abstract method

protected abstract DoProcess ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

GetConnectionInfo() public abstract method

public abstract GetConnectionInfo ( ) : ConnectionInfo
return ConnectionInfo

OnStarted() protected method

protected OnStarted ( ) : void
return void

OnStopped() protected method

protected OnStopped ( ) : void
return void

Post() public method

public Post ( Host from, Atom packet ) : void
from Host
packet Atom
return void

Run() public method

public Run ( ) : Task
return Task

SourceConnectionBase() public method

public SourceConnectionBase ( PeerCastStation.Core.PeerCast peercast, Channel channel, Uri source_uri ) : System
peercast PeerCastStation.Core.PeerCast
channel Channel
source_uri System.Uri
return System

Stop() public method

public Stop ( ) : void
return void

Stop() public method

public Stop ( StopReason reason ) : void
reason StopReason
return void

Property Details

connection protected property

protected SourceConnectionClient connection
return SourceConnectionClient