public Client(StatelessServiceContext context) : base(context) { TrinityConfig.LoadConfig(); TrinityConfig.CurrentRunningMode = RunningMode.Client; TrinityConfig.LogEchoOnConsole = false; TrinityConfig.LoggingLevel = LogLevel.Debug; TrinityConfig.SaveConfig(); Log.LogsWritten += Log_LogsWritten; TrinityTripleModuleClient = new TrinityClient("fabric:/GraphEngine.ServiceFabric.TripleStoreApplication/Stateful.TripleStore.GraphDataService"); TrinityTripleModuleClient.UnhandledException += TrinityTripleModuleClient_UnhandledException1; TrinityTripleModuleClient.Started += TrinityTripleModuleClientStarted; TrinityTripleModuleClient.Start(); }
public void saves_2_0_config_format() { TrinityConfig.SaveConfig("test.xml"); Assert.True(File.ReadAllText(Path.Combine(AssemblyUtility.MyAssemblyPath, "test.xml")).Contains("ConfigVersion=\"2.0\"")); }
public void save_config_no_exception_2() { TrinityConfig.SaveConfig("test2.xml"); }
public void save_config_no_exception() { TrinityConfig.SaveConfig(); }
public void saves_2_0_config_format() { TrinityConfig.SaveConfig("test.xml"); Assert.That(File.ReadAllText("test.xml").Contains("ConfigVersion=\"2.0\"")); }