C# 클래스 SyncthingCore.ManagedInstance

파일 보기 프로젝트 열기: kreischweide/metrothing 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Announcers AnnouncerCollection
ConnectedEndpoint SyncthingCore.Types.RestEndpoint
Errors ErrorCollection
Folders FoldersCollection
Information SyncthingCore.Types.Information
PossibleEndpoints RestEndpointCollection
Statistics SyncthingCore.Types.Statistic
Synchronization SyncthingCore.Types.Synchronization

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
OnMonitored ( InstanceEventArgs e ) : void
OnUnmonitored ( InstanceEventArgs e ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

BumpFile() 공개 메소드

public BumpFile ( string folderId, string fileId ) : Task
folderId string
fileId string
리턴 Task

Disconnect() 공개 메소드

Disconnects the Syncthing instance, stopping and canceling all threads
public Disconnect ( ) : void
리턴 void

IsInState() 공개 메소드

public IsInState ( State state ) : bool
state State
리턴 bool

LoadNeededFiles() 공개 메소드

public LoadNeededFiles ( Folder folder ) : Task
folder SyncthingCore.Types.Folder
리턴 Task

ManagedInstance() 공개 메소드

public ManagedInstance ( ) : System
리턴 System

ManagedInstance() 공개 메소드

public ManagedInstance ( ManagedInstanceDirective directive ) : System
directive ManagedInstanceDirective
리턴 System

OnMonitored() 보호된 메소드

protected OnMonitored ( InstanceEventArgs e ) : void
e InstanceEventArgs
리턴 void

OnUnmonitored() 보호된 메소드

protected OnUnmonitored ( InstanceEventArgs e ) : void
e InstanceEventArgs
리턴 void

RescanAllAsync() 공개 메소드

public RescanAllAsync ( ) : Task
리턴 Task

RestartAsync() 공개 메소드

public RestartAsync ( ) : Task
리턴 Task

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Unwatch() 공개 메소드

Stops the instance monitoring
public Unwatch ( ) : void
리턴 void

UpgradeAsync() 공개 메소드

public UpgradeAsync ( ) : Task
리턴 Task

Watch() 공개 메소드

Initiates the instance monitoring
public Watch ( ) : void
리턴 void

프로퍼티 상세

Announcers 공개적으로 프로퍼티

Contains all announcers known to the Syncthing instance
public AnnouncerCollection Announcers
리턴 AnnouncerCollection

ConnectedEndpoint 공개적으로 프로퍼티

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

Errors 공개적으로 프로퍼티

Contains and manages all available error messages on the Syncthing instance
public ErrorCollection Errors
리턴 ErrorCollection

Folders 공개적으로 프로퍼티

Contains all folders known to this instance
public FoldersCollection Folders
리턴 FoldersCollection

Information 공개적으로 프로퍼티

Contains basic information about the Syncthing instance
public Information,SyncthingCore.Types Information
리턴 SyncthingCore.Types.Information

PossibleEndpoints 공개적으로 프로퍼티

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
리턴 RestEndpointCollection

Statistics 공개적으로 프로퍼티

Contains all available statistics given by the Syncthing instance
public Statistic,SyncthingCore.Types Statistics
리턴 SyncthingCore.Types.Statistic

Synchronization 공개적으로 프로퍼티

Conaints all information about the overall synchronization effort
public Synchronization,SyncthingCore.Types Synchronization
리턴 SyncthingCore.Types.Synchronization