public void sourceHub(Event ev, EventTransfer transfer)
        {
            string l = "";

            if (transfer == EventTransfer.SERVERTOCLIENT && ev._Endpoint != "")
            {
                l = " -> " + ev._Endpoint;
            }
            log(ev._Keyword.ToString() + " -> " + transfer.ToString() + l);
            switch (transfer)
            {
            case EventTransfer.TRASH:
                return;

            case EventTransfer.CLIENTTOCLIENT:
                return;

            case EventTransfer.CLIENTTOSERVER:
                route_toAllServers(ev);
                return;

            case EventTransfer.SERVERTOCLIENT:
                _route_toclient(ev);
                return;

            case EventTransfer.SERVERTOSERVER:
                return;
            }
        }
Exemple #2
0
 internal Event(String Source_FullyQualifiedName, KeyWord KeyWord, Memories Memories, Double WhenSent, Double WhenRcvd, KeyWord Importance, KeyWord DeliveryState, EventTransfer IntendedRecipients)
 {
     _Source_FullyQualifiedName = Source_FullyQualifiedName;
     _DeliveryState = DeliveryState;
     _Importance = Importance;
     _Keyword = KeyWord;
     _Memories = Memories;
     _WhenSent = WhenSent;
     _WhenRcvd = WhenRcvd;
     _IntendedRecipients = IntendedRecipients;
 }
Exemple #3
0
 internal Event(String Source_FullyQualifiedName, KeyWord KeyWord, Memories Memories, Double WhenSent, Double WhenRcvd, KeyWord Importance, KeyWord DeliveryState, EventTransfer IntendedRecipients)
 {
     _Source_FullyQualifiedName = Source_FullyQualifiedName;
     _DeliveryState             = DeliveryState;
     _Importance         = Importance;
     _Keyword            = KeyWord;
     _Memories           = Memories;
     _WhenSent           = WhenSent;
     _WhenRcvd           = WhenRcvd;
     _IntendedRecipients = IntendedRecipients;
 }
Exemple #4
0
 public Event(SerializationInfo info, StreamingContext ctxt)
 {
     _IntendedRecipients = (EventTransfer)info.GetValue("_IntendedRecipients", typeof(eventScope));
     _WhenSent = (Double)info.GetValue("_WhenSent", typeof(Double));
     _WhenRcvd = (Double)info.GetValue("_WhenRcvd", typeof(Double));
     _Importance = (KeyWord)info.GetValue("_Importance", typeof(KeyWord));
     _Memories = (Memories)info.GetValue("_Memories", typeof(Memories));
     _Keyword = (KeyWord)info.GetValue("_Keyword", typeof(KeyWord));
     _DeliveryState = (KeyWord)info.GetValue("_DeliveryState", typeof(KeyWord));
     _Source_FullyQualifiedName = (String)info.GetValue("_Source_FullyQualifiedName", typeof(String));
     _Endpoint = (String)info.GetValue("_Endpoint", typeof(String));
 }
Exemple #5
0
 public Event(SerializationInfo info, StreamingContext ctxt)
 {
     _IntendedRecipients        = (EventTransfer)info.GetValue("_IntendedRecipients", typeof(eventScope));
     _WhenSent                  = (Double)info.GetValue("_WhenSent", typeof(Double));
     _WhenRcvd                  = (Double)info.GetValue("_WhenRcvd", typeof(Double));
     _Importance                = (KeyWord)info.GetValue("_Importance", typeof(KeyWord));
     _Memories                  = (Memories)info.GetValue("_Memories", typeof(Memories));
     _Keyword                   = (KeyWord)info.GetValue("_Keyword", typeof(KeyWord));
     _DeliveryState             = (KeyWord)info.GetValue("_DeliveryState", typeof(KeyWord));
     _Source_FullyQualifiedName = (String)info.GetValue("_Source_FullyQualifiedName", typeof(String));
     _Endpoint                  = (String)info.GetValue("_Endpoint", typeof(String));
 }
        public void sourceHub(Event ev, EventTransfer transfer)
        {
            //log(ev._Keyword.ToString() + " -> " + transfer.ToString());
            switch (transfer)
            {
            case EventTransfer.TRASH:
                return;

            case EventTransfer.CLIENTTOCLIENT:
                route_toAllClients(ev);
                return;

            case EventTransfer.CLIENTTOSERVER:
                _route_toServer(ev);
                return;

            case EventTransfer.SERVERTOCLIENT:
                route_toAllClients(ev);
                return;

            case EventTransfer.SERVERTOSERVER:
                return;
            }
        }
 public void sourceHub(Event ev, EventTransfer transfer)
 {
     string l = "";
     if (transfer == EventTransfer.SERVERTOCLIENT && ev._Endpoint != "")
         l = " -> " + ev._Endpoint;
     log(ev._Keyword.ToString() + " -> " + transfer.ToString() + l);
     switch (transfer)
     {
         case EventTransfer.TRASH:
             return;
         case EventTransfer.CLIENTTOCLIENT:
             return;
         case EventTransfer.CLIENTTOSERVER:
             route_toAllServers(ev);
             return;
         case EventTransfer.SERVERTOCLIENT:
             _route_toclient(ev);
             return;
         case EventTransfer.SERVERTOSERVER:
             return;
     }
 }
 public void sourceHub(Event ev, EventTransfer transfer)
 {
     //log(ev._Keyword.ToString() + " -> " + transfer.ToString());
     switch (transfer)
     {
         case EventTransfer.TRASH:
             return;
         case EventTransfer.CLIENTTOCLIENT:
             route_toAllClients(ev);
             return;
         case EventTransfer.CLIENTTOSERVER:
             _route_toServer(ev);
             return;
         case EventTransfer.SERVERTOCLIENT:
             route_toAllClients(ev);
             return;
         case EventTransfer.SERVERTOSERVER:
             return;
     }
 }