How to use C-sharp to create services similar to those in go- micro

Code in Go:

    service := micro.NewService(
        micro.RegisterTTL(time.Second*30),
        micro.RegisterInterval(time.Second*10),
        micro.Name("TestService"),
    )
    service.Init()

    opts := []server.HandlerOption {
        server.EndpointMetadata("Test.Subscriber",map[string]string{"api":"test.sub"})
    }

can similar services be built in C-sharp and registered with the service framework maintained by go-micro ?

Menu