示例#1
0
 public static void Install()
 {
     if (FileUtil.IsNotExistsFile(GetAppConfigPath))
     {
         throw new Exception("not found file NRpc.json");
     }
     _configFileWacth = new FileWatchUtil(GetAppConfigPath, InternalConfigure, isStart: true);
 }
示例#2
0
 public DependencyManage UseNRpc()
 {
     RemotingClientFactory.RegisterUnLoad();
     FileWatchUtil.RegisterUnLoad();
     return(Instance.UseDefaultSerializer()
            .UseDefaultConfigProvider()
            .UseDefaultLock()
            .UseDefaultMonitor()
            .UseDefaultMethodSerializer()
            .UseDefaultResponseSerializer()
            .UseDefaultSchedule()
            .UseSocket()
            .UseDefaultServerRoute()
            .UseNlog());
 }