/// <summary> /// Constructs an instance ready to talk to an IMap server. /// </summary> /// <param name="parent"> /// The owner if this instance, usually a <see cref="ZIMapConnection"/>. /// </param> /// <remarks> /// The real initialization work is done by <see cref="Setup"/>. /// </remarks> public ZIMapTransport(ZIMapBase parent) : base(parent) { }
public static void MonitorInvoke(ZIMapBase origin, string name, Monitor level, string message) { ZIMapConnection conn = (origin == null) ? null : origin.Parent as ZIMapConnection; MonitorInvoke(conn, name, level, message); }
/// <summary> /// This constructor is the only way to set the parent field. /// </summary> /// <param name="parent"> /// Our parent - usually of type <see cref="ZIMapConnection"/>. /// </param> /// <remarks>A parent argument of <c>null</c> parents to object to itself. /// This trick should only be used by <see cref="ZIMapConnection"/> /// </remarks> public ZIMapBase(ZIMapBase parent) { this.parent = (parent == null) ? this : parent; }
// base has no def xtor ... public Protocol(ZIMapBase parent, ZIMapTransport transport) : base(parent, transport) { name = "ZIMapProtocol"; }
public ZIMapProtocol(ZIMapBase parent, ZIMapTransport transport) : base(parent) { this.transport = transport; this.connection = parent as ZIMapConnection; }