Fixed runtime exception because it is not Publish but PublishAsync