Пример #1
0
        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();
        }
Пример #2
0
 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\""));
 }
Пример #3
0
 public void save_config_no_exception_2()
 {
     TrinityConfig.SaveConfig("test2.xml");
 }
Пример #4
0
 public void save_config_no_exception()
 {
     TrinityConfig.SaveConfig();
 }
Пример #5
0
 public void saves_2_0_config_format()
 {
     TrinityConfig.SaveConfig("test.xml");
     Assert.That(File.ReadAllText("test.xml").Contains("ConfigVersion=\"2.0\""));
 }