C# Class SyncthingCore.ManagedInstance

Afficher le fichier Open project: kreischweide/metrothing Class Usage Examples

Méthodes publiques

Свойство Type Description
Announcers AnnouncerCollection
ConnectedEndpoint SyncthingCore.Types.RestEndpoint
Errors ErrorCollection
Folders FoldersCollection
Information SyncthingCore.Types.Information
PossibleEndpoints RestEndpointCollection
Statistics SyncthingCore.Types.Statistic
Synchronization SyncthingCore.Types.Synchronization

Méthodes publiques

Méthode Description
BumpFile ( string folderId, string fileId ) : Task
Disconnect ( ) : void

Disconnects the Syncthing instance, stopping and canceling all threads

IsInState ( State state ) : bool
LoadNeededFiles ( Folder folder ) : Task
ManagedInstance ( ) : System
ManagedInstance ( ManagedInstanceDirective directive ) : System
RescanAllAsync ( ) : Task
RestartAsync ( ) : Task
ToString ( ) : string
Unwatch ( ) : void

Stops the instance monitoring

UpgradeAsync ( ) : Task
Watch ( ) : void

Initiates the instance monitoring

Méthodes protégées

Méthode Description
OnMonitored ( InstanceEventArgs e ) : void
OnUnmonitored ( InstanceEventArgs e ) : void

Private Methods

Méthode Description
Clear ( ) : void

Removes any trace of volatile information that could taint the behaivour in an disconnected state.

ConfigureStateMachine ( ) : void
ConfigureThreads ( ) : void
Initialize ( ManagedInstanceDirective directive = null ) : void
OnConnected ( ConnectedEventArgs e ) : void
OnConnectedState ( ) : void
OnConnectedStateExit ( ) : void
OnConnecting ( InstanceEventArgs e ) : void
OnConnectingState ( ) : void
OnConnectionChecked ( HeartbeatWorkerEventArgs e ) : void
OnDisconnected ( InstanceEventArgs e ) : void
OnDisconnectedState ( ) : void
OnDisconnecting ( InstanceEventArgs e ) : void
OnEndpointConnectStatusReceived ( object sender, ConnectionWorkerEventArgs e ) : void
OnHeartbeatReceived ( object sender, HeartbeatWorkerEventArgs e ) : void
OnMonitoredState ( ) : void
OnStateMachineTransitioned ( Trigger>.StateMachine obj ) : void
OnUnmonitoredState ( ) : void

Method Details

BumpFile() public méthode

public BumpFile ( string folderId, string fileId ) : Task
folderId string
fileId string
Résultat Task

Disconnect() public méthode

Disconnects the Syncthing instance, stopping and canceling all threads
public Disconnect ( ) : void
Résultat void

IsInState() public méthode

public IsInState ( State state ) : bool
state State
Résultat bool

LoadNeededFiles() public méthode

public LoadNeededFiles ( Folder folder ) : Task
folder SyncthingCore.Types.Folder
Résultat Task

ManagedInstance() public méthode

public ManagedInstance ( ) : System
Résultat System

ManagedInstance() public méthode

public ManagedInstance ( ManagedInstanceDirective directive ) : System
directive ManagedInstanceDirective
Résultat System

OnMonitored() protected méthode

protected OnMonitored ( InstanceEventArgs e ) : void
e InstanceEventArgs
Résultat void

OnUnmonitored() protected méthode

protected OnUnmonitored ( InstanceEventArgs e ) : void
e InstanceEventArgs
Résultat void

RescanAllAsync() public méthode

public RescanAllAsync ( ) : Task
Résultat Task

RestartAsync() public méthode

public RestartAsync ( ) : Task
Résultat Task

ToString() public méthode

public ToString ( ) : string
Résultat string

Unwatch() public méthode

Stops the instance monitoring
public Unwatch ( ) : void
Résultat void

UpgradeAsync() public méthode

public UpgradeAsync ( ) : Task
Résultat Task

Watch() public méthode

Initiates the instance monitoring
public Watch ( ) : void
Résultat void

Property Details

Announcers public_oe property

Contains all announcers known to the Syncthing instance
public AnnouncerCollection Announcers
Résultat AnnouncerCollection

ConnectedEndpoint public_oe property

The currently connected endpoint, if the managed instance is in the Connected state, otherwise null
public RestEndpoint,SyncthingCore.Types ConnectedEndpoint
Résultat SyncthingCore.Types.RestEndpoint

Errors public_oe property

Contains and manages all available error messages on the Syncthing instance
public ErrorCollection Errors
Résultat ErrorCollection

Folders public_oe property

Contains all folders known to this instance
public FoldersCollection Folders
Résultat FoldersCollection

Information public_oe property

Contains basic information about the Syncthing instance
public Information,SyncthingCore.Types Information
Résultat SyncthingCore.Types.Information

PossibleEndpoints public_oe property

A collection of REST endpoints to try.
This comes in handy if your client switches the network often (like a laptop) where the instance might be available through a LAN based hostname (office) or through an external port-forwarding (on the go).
public RestEndpointCollection PossibleEndpoints
Résultat RestEndpointCollection

Statistics public_oe property

Contains all available statistics given by the Syncthing instance
public Statistic,SyncthingCore.Types Statistics
Résultat SyncthingCore.Types.Statistic

Synchronization public_oe property

Conaints all information about the overall synchronization effort
public Synchronization,SyncthingCore.Types Synchronization
Résultat SyncthingCore.Types.Synchronization