Skip to content

Instantly share code, notes, and snippets.

@salaboy
Created May 11, 2024 08:10
Show Gist options
  • Save salaboy/b1215b6a5de74f0ea18c5dc6507f3c96 to your computer and use it in GitHub Desktop.
Save salaboy/b1215b6a5de74f0ea18c5dc6507f3c96 to your computer and use it in GitHub Desktop.
public DaprClientBuilder(Integer httpPort, Integer grpcPort) {
this();
if(httpPort != null){
System.getProperties().setProperty(Properties.HTTP_PORT.getName(), httpPort.toString());
}
if(grpcPort != null){
System.getProperties().setProperty(Properties.GRPC_PORT.getName(), grpcPort.toString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment