public override void ConnectNetWork(DataResponsible responsible) { if (connectNetWorkNotic != null) { connectNetWorkNotic.BeginInvoke(responsible, null, null); } }
/// <summary> /// 连接上网络 /// </summary> public virtual void ConnectNetWork(DataResponsible responsible) { }
public abstract void Init(DataResponsible responsible);
/// <summary> /// 默认构造方法 /// </summary> private ModuleDispather() { dataResponsible = new DataResponsible(); }
/// <summary> /// 初始化 /// </summary> /// <param name="responsible">数据发送接口</param> public override void Init(DataResponsible responsible) { this.DataResponsible = responsible; }
protected virtual void OnConnectNetWorkNotic(DataResponsible responsible) { }
protected abstract void Init(DataResponsible responsible);