示例#1
0
 public LogReader()
 {
     db = DB.Open(GetFullPath(Settings.Default.Path), new Options {
         CreateIfMissing = true
     });
     RpcServerPlugin.RegisterMethods(this);
 }
示例#2
0
 protected override void OnSystemLoaded(NeoSystem system)
 {
     if (system.Settings.Network != Settings.Default.Network)
     {
         return;
     }
     RpcServerPlugin.RegisterMethods(this, Settings.Default.Network);
 }
示例#3
0
 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);
 }
示例#4
0
        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);
        }
示例#5
0
 public RpcNep5Tracker()
 {
     RpcServerPlugin.RegisterMethods(this);
 }
示例#6
0
 public OracleService()
 {
     RpcServerPlugin.RegisterMethods(this);
 }