我没有使用yaml,因为我的公司使用TFVC,所以我需要经典的方式。
使用 $[pipeline.startTime] 我得到了开始时间,但现在我需要以这种方式格式化:dd.MM.yyyy
像 VSO(TFS) 中的 powershellscript - 将当前日期时间作为变量帮助了我,但直接在变量中设置日期将是一种更干净的方法
powershell azure-devops azure-pipelines-build-task azure-pipelines azure-devops-server-2019
我在这条指令之后创建了一个 grpc 服务器和客户端:https ://docs.microsoft.com/en-us/aspnet/core/tutorials/grpc/grpc-start?view=aspnetcore-3.0&tabs=visual-studio 。
当我尝试从客户端调用服务时,客户端显示此错误消息:“发生了一个或多个错误。(Status(StatusCode=Unknown, Detail="No status received"))”
而服务器这个:
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 POST http://STEINI-PC/LocationService/GetLocations application/grpc
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'gRPC - gRPC - Unimplemented service'
info: Grpc.AspNetCore.Server.Internal.ServerCallHandlerFactory[1]
Service 'LocationService' is unimplemented.
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'gRPC - gRPC - Unimplemented service'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 51.812000000000005ms 200 application/grpc
Run Code Online (Sandbox Code Playgroud)
原型文件:
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 POST http://STEINI-PC/LocationService/GetLocations application/grpc
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'gRPC - gRPC - Unimplemented service'
info: Grpc.AspNetCore.Server.Internal.ServerCallHandlerFactory[1]
Service 'LocationService' is unimplemented.
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] …Run Code Online (Sandbox Code Playgroud)