Beispiel #1
0
 public CommController(
     ICommsChannel commsChannel,
     IDataDecoder dataPckDecoder,
     ILogger localLogger,
     IAttachedQuadsCtrl attachedQuads,
     [Named("QuadRecvQueue")] IDataTransferQueue <IQuadRecvMsgQueue> recvQueue,
     [Named("QuadTransQueue")] IDataTransferQueue <IQuadTransQueueMsg> postQueue)
 {
     this.dataPckDecoder = dataPckDecoder;
     this.commsChannel   = commsChannel;
     this.recvQueue      = recvQueue;
     this.postQueue      = postQueue;
     this.localLogger    = localLogger;
     this.attachedQuads  = attachedQuads;
 }
        public CommsController(SupportedChannels channel)
        {
            switch (channel)
            {
            case SupportedChannels.Comm:
            {
                commsChannel    = NinjectIoC.Kernel.Get <ICommsChannel>();
                commChannel     = NinjectIoC.Kernel.Get <ICommsController>();
                msgProcessor    = NinjectIoC.Kernel.Get <IMsgProcessor>();
                this.signalRMgr = NinjectIoC.Kernel.Get <ISignalRClientProxyMgr>();
                break;
            }

            case SupportedChannels.Tcpip:
            {
                commChannel = null;
                break;
            }
            }
        }