BlowingScanServiceClient.cs 1.88 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using FObjBase;
using FLY.Thick.BlowingScan.OBJ_INTERFACE;
using FLY.Thick.BlowingScan.IService;
using Misc;
using FLY.Thick.Blowing.Client;
using Newtonsoft.Json;

namespace FLY.Thick.BlowingScan.Client
{
    /// <summary>
    /// 
    /// </summary>
    public class BlowingScanServiceClient : BlowingServiceClient, IBlowingScanService
    {
20 21 22

        protected override Type InterfaceType => typeof(IBlowingScanService);

潘栩锋's avatar
潘栩锋 committed
23 24 25
        /// <summary>
        /// 
        /// </summary>
26 27 28 29
        public BlowingScanServiceClient(UInt32 serverid) : base(serverid) { }


        public BlowingScanServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { }
潘栩锋's avatar
潘栩锋 committed
30 31
        #region IRenZiJiaScanService
        /// <summary>
32
        /// 多少次扫描解一次方程
潘栩锋's avatar
潘栩锋 committed
33
        /// </summary>
34
        public int SolveCnt { get; set; }
潘栩锋's avatar
潘栩锋 committed
35 36 37 38 39


        /// <summary>
        /// 探头宽度,用于解方程,可以与实际不符合 单位脉冲
        /// </summary>
40
        public int SensorWidth { get; set; }
潘栩锋's avatar
潘栩锋 committed
41 42 43 44 45


        /// <summary>
        /// 平滑
        /// </summary>
46
        public int Smooth { get; set; }
潘栩锋's avatar
潘栩锋 committed
47 48

        /// <summary>
49
        /// 缓冲区数据量
潘栩锋's avatar
潘栩锋 committed
50
        /// </summary>
51
        public int BufListCount { get; set; }
潘栩锋's avatar
潘栩锋 committed
52 53 54
        /// <summary>
        /// 缓冲区最后一个记录序号
        /// </summary>
55
        public int BufListLastNo { get; set; }
潘栩锋's avatar
潘栩锋 committed
56 57 58 59 60 61
        #endregion


        /// <summary>
        /// 获取 缓冲区列表
        /// </summary>
62 63 64
        /// <param name="asyncDelegate">retdata = GetBufListReponse</param>
        /// <param name="asyncContext"></param>
        public void GetBufList(int no, AsyncCBHandler asyncDelegate, object asyncContext)
潘栩锋's avatar
潘栩锋 committed
65
        {
66
            Call(nameof(GetBufList), new { no }, asyncDelegate, asyncContext);
潘栩锋's avatar
潘栩锋 committed
67 68 69 70 71
        }
    }
}