コード例 #1
0
        public void SetAppDeploymentStatus(AppDeploymentStatus appDeploymentStatus)
        {
            InstanceDeploymentStatus instanceDeploymentStatus;

            if (!_instances.TryGetValue(appDeploymentStatus.InstanceId, out instanceDeploymentStatus))
            {
                instanceDeploymentStatus = new InstanceDeploymentStatus();
                _instances[appDeploymentStatus.InstanceId] = instanceDeploymentStatus;
            }
            instanceDeploymentStatus.SetAppDeploymentStatus(appDeploymentStatus);
        }
コード例 #2
0
 public string Serialize(InstanceDeploymentStatus instanceDeploymentStatus)
 {
     return(_jsonSerializer.Serialize(instanceDeploymentStatus));
 }
コード例 #3
0
 public void SetInstanceDeploymentStatus(string instanceId, InstanceDeploymentStatus status)
 {
     _instances[instanceId] = status;
 }