public UdpClient(ActionManagerBuilder builder, IUdpClientState state) { state.Client = this; _manager = builder.Build(state); Init(new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)); }
public ActionManager Build(IUdpClientState state) { foreach (var action in _manager) action.Value.SetClient(state); return _manager; }
public void SetClient(IUdpClientState state) { State = state; }