コード例 #1
0
 public LogReader()
 {
     db = DB.Open(GetFullPath(Settings.Default.Path), new Options {
         CreateIfMissing = true
     });
     RpcServerPlugin.RegisterMethods(this);
 }
コード例 #2
0
ファイル: LogReader.cs プロジェクト: neo-project/neo-modules
 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);
 }