SetOutgoing() public method

public SetOutgoing ( Task>.Func outgoing ) : void
outgoing Task>.Func
return void
Exemplo n.º 1
0
        Broker Register(MessageUnit unit, Address address)
        {
            if (!units.ContainsKey(address))
            {
                units.Add(address, new List<MessageUnit>());

                unit.SetOutgoing(Outgoing);
                units[address].Add(unit);
            }

            return this;
        }
Exemplo n.º 2
0
        Broker Register(MessageUnit unit, Address address)
        {
            if (!units.ContainsKey(address))
            {
                units.Add(address, new List <MessageUnit>());

                unit.SetOutgoing(Outgoing);
                units[address].Add(unit);
            }

            return(this);
        }