FastQuant.EventDispatcher.Add C# (CSharp) Méthode

Add() public méthode

public Add ( IEventClient client ) : void
client IEventClient
Résultat void
        public void Add(IEventClient client)
        {
            this.idArray_0[client.Id] = client;
            byte[] eventTypes = client.EventTypes;
            for (int i = 0; i < eventTypes.Length; i++)
            {
                byte id = eventTypes[i];
                if (this.idArray_1[(int)id] == null)
                {
                    this.idArray_1[(int)id] = new List<IEventClient>();
                }
                this.idArray_1[(int)id].Add(client);
            }
            this.permanentQueue_0.AddReader(client);
        }
        public void Emit(Event e) { }

Usage Example

Exemple #1
0
 public EventClient(EventDispatcher dispatcher)
 {
     this.dispatcher = dispatcher;
     Id = counter++;
     dispatcher.Add(this);
 }