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