C# Class ShadowsocksUriGenerator.Rescue.Restorers

Class for static methods that restore order from information collected by rescuers.
Show file Open project: database64128/shadowsocks-uri-generator

Public Methods

Method Description
ToJsonFiles ( string configDir, Users users, Nodes nodes, CancellationToken cancellationToken = default ) : Task

Restores rescued users and nodes to JSON config files.

Method Details

ToJsonFiles() public static method

Restores rescued users and nodes to JSON config files.
public static ToJsonFiles ( string configDir, Users users, Nodes nodes, CancellationToken cancellationToken = default ) : Task
configDir string Path to JSON config directory.
users Users The rescued object.
nodes Nodes The rescued object.
cancellationToken CancellationToken A token that may be used to cancel the write operation.
return Task