Пример #1
0
        // [Test] // needs: listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
        public void UpdateProto()
        {
            Directory.GetCurrentDirectory().Print();
            var protoc = "http://localhost:20000/types/proto".GetStringFromUrl();

            protoc = protoc.Replace("ServiceStack.Extensions.Tests", "ServiceStack.Extensions.Tests.Protoc");

            Directory.SetCurrentDirectory("../../../Protoc");
            File.WriteAllText("services.proto", protoc);
            ExecUtils.ShellExec("web proto-csharp services.proto");
        }
        // [Test] public void TestProtoTypes() => TestsConfig.BaseUri.CombineWith("/types/proto").GetStringFromUrl().Print();
        // [Test] // needs: listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
        public void UpdateProto()
        {
            Directory.GetCurrentDirectory().Print();
            var protoc = TestsConfig.BaseUri.CombineWith("/types/proto").GetStringFromUrl();

            protoc = protoc.Replace("ServiceStack.Extensions.Tests", "ServiceStack.Extensions.Tests.Protoc");

            Directory.SetCurrentDirectory("../../../Protoc");
            File.WriteAllText("services.proto", protoc);
            ExecUtils.ShellExec("x proto-csharp services.proto");
        }