/// <summary> /// </summary> /// <param name="server"> /// </param> /// <param name="messageSerializer"> /// </param> /// <param name="bus"> /// </param> public ZoneClient(ZoneServer server, IMessageSerializer messageSerializer, IBus bus) : base(server) { this.server = server; this.messageSerializer = messageSerializer; this.bus = bus; }
/// <summary> /// </summary> /// <param name="server"> /// </param> /// <param name="messageSerializer"> /// </param> /// <param name="bus"> /// </param> public ZoneClient(ZoneServer server, IMessageSerializer messageSerializer, IBus bus) : base(server) { this.server = server; this.messageSerializer = messageSerializer; this.bus = bus; this.dispatcherThread = new Thread(this.DispatchMessages); this.dispatcherThread.Start(); }
/// <summary> /// </summary> /// <param name="server"> /// </param> /// <returns> /// </returns> public ZoneClient Create(ZoneServer server) { return new ZoneClient(server, this.messageSerializer, this.bus); }
/// <summary> /// </summary> /// <returns> /// </returns> private static bool CheckZoneServerCreation() { try { zoneServer = Container.GetInstance<ZoneServer>(); } catch (Exception) { return false; } return true; }
/// <summary> /// </summary> /// <param name="server"> /// </param> /// <returns> /// </returns> public ZoneClient Create(ZoneServer server) { ZoneClient zc = new ZoneClient(server, this.messageSerializer, this.bus); zc.zoneBus = server.zoneBus; return new ZoneClient(server, this.messageSerializer, this.bus); }
/// <summary> /// </summary> /// <returns> /// </returns> private static bool CheckZoneServerCreation() { try { zoneServer = new ZoneServer(); } catch (Exception e) { LogUtil.ErrorException(e); return false; } return true; }