public LogReader() { db = DB.Open(GetFullPath(Settings.Default.Path), new Options { CreateIfMissing = true }); RpcServerPlugin.RegisterMethods(this); }
protected override void OnSystemLoaded(NeoSystem system) { if (system.Settings.Network != Settings.Default.Network) { return; } RpcServerPlugin.RegisterMethods(this, Settings.Default.Network); }
protected override void OnSystemLoaded(NeoSystem system) { if (system.Settings.Magic != Settings.Default.Network) { return; } System = system; System.ServiceAdded += NeoSystem_ServiceAdded; RpcServerPlugin.RegisterMethods(this, Settings.Default.Network); }
protected override void OnSystemLoaded(NeoSystem system) { if (system.Settings.Magic != _network) { return; } System = system; string path = string.Format(_dbPath, system.Settings.Magic.ToString("X8")); _db = DB.Open(GetFullPath(path), new Options { CreateIfMissing = true }); RpcServerPlugin.RegisterMethods(this, _network); }
public RpcNep5Tracker() { RpcServerPlugin.RegisterMethods(this); }
public OracleService() { RpcServerPlugin.RegisterMethods(this); }