This should not be a contentious issue and I would ask others to be as considerate of my needs as I try to be of yours.
Your needs? Or your wants? Unfortunately, it is a contentious issue because so many of the people who run their generators think it's perfectly okay to run them morning, noon, and night. They turn them on, and either leave the boat so they don't have to listen to them, or they retire down below and crank up the DVD to drown out the hum. Not saying you are among this lot, but many people operate this way.
We were in Northeast Harbor Maine (not Canada) during one cruise and two humongous trawlers from Massachusetts grabbed a couple nearby moorings and proceeded to run their generators for hours. A quick straw poll of the neighbors indicated this would not be acceptable if it continuted. It started to get dark, they were still running them, and one of our party rowed over and asked if they were going to turn them off for the night. Nope, they had to freeze two weeks worth of meat.
So we talked to the harbormaster, who also asked that they shut them down for the night. They refused. Eventually, they were put on docks with shore power for the same price as a mooring. Yes, they were that arrogant that they managed to get dock space PLUS shore power for the mooring price.
At least it was quiet and we didn't have to sacrifice a potato.
OTOH, one time we were tied to the public dock in Camden opposite a big megayacht with two gensets. We were enjoying our "we're here beer" (actually, I think it was a rum drink) when the skipper greeted us, apologized for needing to run generators at all, and explained his plan for mitigating their impact. They'd run the big one during the day (when we planned to be out sightseeing anyway) and switch to the smaller, quieter one on the opposite side of the boat for the night. Of course, neither was the trusty red Honda and they were set up so as to minimize the noise level. We didn't even know they were running, but what we were most impressed with was the skipper going above and beyond to explain everything to us before it became an issue.
If more of the people who "need" to run a generator would at least be considerate about it, the issue would not be so contentious.