Beispiel #1
0
        /// <summary>
        /// Retrieves data, which was given to master server by a spawned process,
        /// which was finalized
        /// </summary>
        public void GetFinalizationData(int spawnId, FinalizationDataResultHandler callback, IClientSocket connection)
        {
            if (!connection.IsConnected)
            {
                callback.Invoke(null, "Not connected");
                return;
            }

            connection.SendMessage((short)MstMessageCodes.GetSpawnFinalizationData, spawnId, (status, response) =>
            {
                if (status != ResponseStatus.Success)
                {
                    callback.Invoke(null, response.AsString("Unknown error"));
                    return;
                }

                callback.Invoke(new Dictionary <string, string>().FromBytes(response.AsBytes()), null);
            });
        }
Beispiel #2
0
 /// <summary>
 /// Retrieves data, which was given to master server by a spawned process,
 /// which was finalized
 /// </summary>
 /// <param name="spawnId"></param>
 /// <param name="callback"></param>
 public void GetFinalizationData(int spawnId, FinalizationDataResultHandler callback)
 {
     GetFinalizationData(spawnId, callback, Connection);
 }