A C# application designed to run on Google Compute Engine. It demonstrates how to use Google Cloud Pub/Sub.
-
Clone this repo with
git clone https://github.com/GoogleCloudPlatform/pubsub-shout-csharp
-
Open ShoutSelvice.sln with Microsoft Visual Studio version 2012 or later.
-
Edit
ShoutLib/Constants.cs
. Update the variablesProjectId
,ServiceAccountEmail
, andServiceAccountP12KeyPath
. -
Build the Solution.
-
Run it locally by pressing F5 or choosing "Debug -> Start Debugging" from Microsoft Visual Studio's Menu.
To deploy the application:
-
If you haven't already, use the Google Developers Console to create a new project id.
-
Use the Google Developers Console to create a new VM instance with a Windows Server 2012 boot disk image. Before clicking the
Create
button, click "Management, disk, networking, access & security options" and under "Access & security", changeCloud Platform
toEnabled
. Now click 'Create.' -
Wait for the instance to be created, then connect to it via Remote Desktop.
-
Copy the contents of your Release folder from your development machine to the VM instance.
-
Using Windows explorer, give the user
Local Service
permission to read and execute the Release directory. -
Install the service with installutil.exe:
C:\\Users\\shout7q\\Desktop\\Release>\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\InstallUtil.exe ShoutService.exe
Read the readme in the appengine-python-flask directory.
Star this repo if you found it useful. Use the github issue tracker to give feedback on this repo.
See LICENSE
Jeffrey Rennie