Пример #1
0
        public static SignalRBase CreateFactory(string TransportType, string sUrl, APXControler apx)
        {
            SignalRBase s = null;

            switch (TransportType)
            {
            case "0":
                s = new SignalRSNone(sUrl, apx);
                break;
            }
            return(s);
        }
Пример #2
0
        public bool DoInit()
        {
            SignalRBase provider = MessageTypeFactory.CreateFactory(m_transportType, "https://localhost:44348/ConnectionFacilitatorHub", this);

            //DataTransferMonitor Initialize = new DataTransferMonitor("BaggageClaimMonitor1");
            //Initialize.Subscribe(provider);


            //provider.DoSendMessageToGroup("ABC", "Init");
            while (!provider.DoInit("(ABC)", "Init"))
            {
                ;
            }
            Console.Read();
            return(true);
        }