Task <IMessagingService> GetMessagingService(PreviewArguments args) { if (args.CompileOnly) { return(Task.FromResult((IMessagingService) new NullMessagingService())); } return(_fuse.ConnectOrSpawnAsync( identifier: "Preview " + args.Project.NativePath)); }