コード例 #1
0
        /// <summary>
        /// Add the results for a SofOperation. This way the operation can determine what to do with it.
        /// </summary>
        /// <param name="results">The results.</param>
        public void AddResult(SofResult results)
        {
            var root = new JObject();

            root[OperationKey.Id]        = results.OperationId;
            root[OperationKey.Operation] = results.Operation;
            root[OperationKey.Success]   = results.Success;
            root[OperationKey.Error]     = results.Error;

            Data.Add(root.ToString());
        }
コード例 #2
0
        /// <summary>
        /// Add the results for a SofOperation. This way the operation can determine what to do with it.
        /// </summary>
        /// <param name="results">The results.</param>
        public void AddResult(SofResult results)
        {
            var root = new JObject();
            root[OperationKey.Id] = results.OperationId;
            root[OperationKey.Operation] = results.Operation;
            root[OperationKey.Success] = results.Success;
            root[OperationKey.Error] = results.Error;

            Data.Add(root.ToString());
        }