Пример #1
0
        static DefaultFiles()
        {
            bool isTestClient = false;

            if (Assembly.GetEntryAssembly() != null)
            {
                isTestClient = Assembly.GetEntryAssembly().FullName.StartsWith("EventStore.TestClient");
            }

            switch (Platforms.GetPlatform())
            {
            case Platform.Linux:
            case Platform.Mac:
                if (isTestClient)
                {
                    DefaultConfigFile = "testclient.conf";
                }
                else
                {
                    DefaultConfigFile = "eventstore.conf";
                }
                break;

            default:
                DefaultConfigFile = System.String.Empty;
                break;
            }
        }
        static DefaultFiles()
        {
            switch (Platforms.GetPlatform())
            {
            case Platform.Linux:
                DefaultConfigFile = "eventstore.conf";
                break;

            default:
                DefaultConfigFile = System.String.Empty;
                break;
            }
        }