public async Task <PackageCostQueryCommandResponse> HandlerAsync(PackageCostQueryCommand request) { await CommandBus.RaiseEventAsync(new PackageCostQueryEvent()); var calculatedPackage = CalculatePackage(request); return(new PackageCostQueryCommandResponse { Cost = calculatedPackage.Cost, PackageType = calculatedPackage.PackageType }); }