public ProxyClientReceiveCallback(ClientEntity client, ClientEntity remote, ClientRepository repository, ClientCreatorRequest creator, ClientLinkerRequest linker, ClientConnectorRequest connector, ClientDisconnectorRequest disconnector, ClientSenderRequest sender, ProxyTagEnum tag = ProxyTagEnum.UNKNOW) : base(client, remote, repository, creator, linker, connector, disconnector, sender, tag) { }
public DofusProxyClientReceiveCallback(ClientEntity client, ClientEntity remote, ClientRepository repository, ClientCreatorRequest creator, ClientLinkerRequest linker, ClientConnectorRequest connector, ClientDisconnectorRequest disconnector, ClientSenderRequest sender, ProxyEntity proxy, ProxyTagEnum tag = ProxyTagEnum.UNKNOW) : base(client, remote, repository, creator, linker, connector, disconnector, sender, tag) { if (tag is ProxyTagEnum.UNKNOW) { throw new ArgumentNullException(nameof(tag)); } _proxy = proxy ?? throw new ArgumentNullException(nameof(proxy)); }
public AbstractClientReceiveCallback(ClientEntity client, ClientEntity remote, ClientRepository repository, ClientCreatorRequest creator, ClientLinkerRequest linker, ClientConnectorRequest connector, ClientDisconnectorRequest disconnector, ClientSenderRequest sender, ProxyTagEnum tag = ProxyTagEnum.UNKNOW) : base(client) { _remote = remote; _tag = tag; _client_repository = repository ?? throw new ArgumentNullException(nameof(repository)); _client_creator = creator ?? throw new ArgumentNullException(nameof(creator)); _client_linker = linker ?? throw new ArgumentNullException(nameof(linker)); _client_connector = connector ?? throw new ArgumentNullException(nameof(connector)); _client_disconnector = disconnector ?? throw new ArgumentNullException(nameof(disconnector)); _client_sender = sender ?? throw new ArgumentNullException(nameof(sender)); _constructor_handled(); }
public DofusRetroProxyClientReceiveCallback(ClientEntity client, ClientEntity remote, ClientRepository repository, ClientCreatorRequest creator, ClientLinkerRequest linker, ClientConnectorRequest connector, ClientDisconnectorRequest disconnector, ClientSenderRequest sender, ProxyEntity proxy, Account account, ProxyTagEnum tag = ProxyTagEnum.UNKNOW) : base(client, remote, repository, creator, linker, connector, disconnector, sender, proxy, tag) { Account = account; Account.Port = _proxy.Port; _handler = new MessageHandler <ProxyHandlerAttribute>(); _rcv_action += OnReceive; //_rcv_action += Received; }