IFixService.cs 1.16 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FLY.Thick.Base.IService
{
潘栩锋's avatar
潘栩锋 committed
8 9 10
    /// <summary>
    /// 定点测量服务
    /// </summary>
潘栩锋's avatar
潘栩锋 committed
11 12 13 14 15 16
    public interface IFixService
    {
        /// <summary>
        /// 注册timegrid 事件
        /// </summary>
        /// <param name="handler"></param>
潘栩锋's avatar
潘栩锋 committed
17
        void RegistTimeGridEvent(FixEventHandler handler);
潘栩锋's avatar
潘栩锋 committed
18 19 20 21
        /// <summary>
        /// 关闭注册timegrid 事件
        /// </summary>
        /// <param name="handler"></param>
潘栩锋's avatar
潘栩锋 committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
        void UnRegistTimeGridEvent(FixEventHandler handler);
    }

    public delegate void FixEventHandler(object sender, FixEventArgs e);

    public class FixEventArgs : EventArgs
    {
        /// <summary>
        /// 数据, AD数据!!!!!
        /// </summary>
        public int[] ADs;
        /// <summary>
        /// 数据, 厚度数据!!!!!
        /// </summary>
        public double[] thicks;
        /// <summary>
        /// 单数据时间间隔
        /// </summary>
        public TimeSpan ts;
        /// <summary>
        /// 开始时间点
        /// </summary>
        public DateTime time;
潘栩锋's avatar
潘栩锋 committed
45 46
    }
}