Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

IClientProxy should use IEnumerable<object>, not params object[] for args #749

@analogrelay

Description

@analogrelay

The interface should take IEnumerable<object>, not a param-array for InvokeAsync. The current API is this:

Task InvokeAsync(string method, params object[] args);

Param-arrays are a convenience for callers and should be done via Extension methods or something. If you have a list of arguments that aren't in the form of an array, but are enumerable, this API forces you to allocate an array and copy.

/cc @moozzyk @davidfowl @muratg consider this small fix for Alpha since it's a "public" API?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions