@@ -11,33 +11,33 @@ namespace ReplicateState
11
11
internal class Program
12
12
{
13
13
/// <summary>
14
- /// PlEASE REPLACE ME .
15
- /// You SpatialOS project name.
16
- /// It should be the same as the name specified in the local spaitalos.json file used to start spatiald .
14
+ /// PLEASE REPLACE.
15
+ /// Your SpatialOS project name.
16
+ /// It should be the same as the name specified in the local project definition file (spatialos.json) used to start the local API service .
17
17
/// </summary>
18
18
private const string ProjectName = "platform_sdk_examples" ;
19
19
20
20
/// <summary>
21
- /// PlEASE REPLACE ME .
21
+ /// PLEASE REPLACE.
22
22
/// The name of the deployment.
23
23
/// </summary>
24
24
private static readonly string DeploymentName = $ "snapshot_upload_{ StringUtils . Random ( 6 ) } ";
25
25
26
26
/// <summary>
27
- /// PlEASE REPLACE ME .
28
- /// The path to a valid launch configuration json file.
27
+ /// PLEASE REPLACE.
28
+ /// The path to a valid launch configuration JSON file.
29
29
/// </summary>
30
30
private const string LaunchConfigFilePath = "../blank_project/default_launch.json" ;
31
31
32
32
/// <summary>
33
- /// PlEASE REPLACE ME .
34
- /// The assembly you would want the cloud deployment to use.
33
+ /// PLEASE REPLACE.
34
+ /// The assembly you want the cloud deployment to use.
35
35
/// </summary>
36
36
private const string AssemblyId = "blank_project" ;
37
37
38
38
/// <summary>
39
- /// PlEASE REPLACE ME .
40
- /// The port spatiald is running on.
39
+ /// PLEASE REPLACE.
40
+ /// The port that the local API service is running on.
41
41
/// </summary>
42
42
private const int SpatialDPort = 9876 ;
43
43
@@ -67,14 +67,14 @@ internal class Program
67
67
DeploymentServiceClient . Create ( SpatialdEndpoint ) ;
68
68
69
69
/// <summary>
70
- /// PlEASE REPLACE ME .
71
- /// The SpatialOS Platform refresh token of a service account or a user account.
70
+ /// PLEASE REPLACE.
71
+ /// The SpatialOS refresh token of a service account or a user account.
72
72
/// </summary>
73
73
private static string RefreshToken =>
74
74
Environment . GetEnvironmentVariable ( "IMPROBABLE_REFRESH_TOKEN" ) ?? "PLEASE_REPLACE_ME" ;
75
75
76
76
/// <summary>
77
- /// This contains the implementation of the "replicate local state to cloud" scenario.
77
+ /// This contains the implementation of the "Replicate local state to cloud" scenario.
78
78
/// 1. Take a snapshot of a local deployment.
79
79
/// 2. Download the local snapshot to a temporary address.
80
80
/// 3. Upload the local snapshot to the cloud through in three steps:
@@ -159,15 +159,15 @@ private static void Main(string[] args)
159
159
}
160
160
161
161
/// <summary>
162
- /// This assumes you already have a running spatiald process at the specified port.
163
- /// For more information about how to start a spatiald process, please visit the accompanying documentation on
162
+ /// This assumes you already have the local API service (" spatiald") running at the specified port.
163
+ /// For more information about how to start the local API service, visit the accompanying documentation on
164
164
/// https://docs.improbable.io/reference/latest//platform-sdk/local-api.
165
165
/// This starts a local deployment using the blank SpatialOS project included in this repository.
166
166
/// </summary>
167
167
private static void Setup ( )
168
168
{
169
169
Console . WriteLine ( "Setting up for the scenario" ) ;
170
- Console . WriteLine ( $ "Assuming spatiald is running at localhost:{ SpatialDPort } ") ;
170
+ Console . WriteLine ( $ "Assuming the local API service is running at localhost:{ SpatialDPort } ") ;
171
171
Console . WriteLine ( "Starting a local deployment" ) ;
172
172
var launchConfig = File . ReadAllText ( LaunchConfigFilePath ) ;
173
173
_localDeployment = LocalDeploymentServiceClient . CreateDeployment ( new CreateDeploymentRequest
0 commit comments