예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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();
 }
예제 #3
0
 /// <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();
 }
예제 #4
0
 /// <summary>
 /// </summary>
 /// <param name="server">
 /// </param>
 /// <returns>
 /// </returns>
 public ZoneClient Create(ZoneServer server)
 {
     return new ZoneClient(server, this.messageSerializer, this.bus);
 }
예제 #5
0
        /// <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);
 }
예제 #7
0
 /// <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;
 }
예제 #8
0
        /// <summary>
        /// </summary>
        /// <returns>
        /// </returns>
        private static bool CheckZoneServerCreation()
        {
            try
            {
                zoneServer = new ZoneServer();
            }
            catch (Exception e)
            {
                LogUtil.ErrorException(e);
                return false;
            }

            return true;
        }