-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ported MtApi5 to .Net Core #203
base: dev
Are you sure you want to change the base?
Conversation
* based on https://github.com/dotnet/wcf * only client side is available in .net core * piping removed, only tcp connection possible * ported MtApi5 and MtApi5TestClient to .net core
@lazou Hi. I would like to ask you to change destination branch of PR to dev. I will review deep your changes and will try to merge it. I have first remark: piping is using for local connection when user does not define IP address for connection. In my opinion, it must be more faster then using local TCP connection. If both connections have similar connection characteristics then we can use only one TCP and it will not be blocker for merging the PR. |
Hi @vdemydiuk , I changed the target branch like requested to |
Maybe it helps for the decision to kick out pipes |
@lazou After some discussions in telegram's chat I decided to postpone merging the PR into branch. Some users are using pipe mode and have comparative information that pipe is working faster. |
@vdemydiuk Ok, no problem. Let`s see if the piping support will be added soon to the WCF library of .net core. I will try to keep the branch up to date. |
@lazou Thank you very much. |
@vdemydiuk
Is piping also available in the Python API? If so, how is the connection set when not specifying IP, like here: client = mt.MtApiClient()
...
client.BeginConnect(ip, port) UPDATE client = mt.MtApiClient()
...
# To use a TCP based (host:port) connection:
client.BeginConnect(ip, port)
# To use a pipe based (port only?) connection:
# (Note: a named pipe port is located on the `localhost` interface.)
client.BeginConnect(port) |
There is no Python-API |
OT ... |
HI! |
@vyacheslav-skvortsov Updates in which regard? Merging it into dev or updating this branch to newer dependency versions? You can already use this .net port by compiling the sources of this branch at your end. I think not that this PR will be merged in the next couple of months since @vdemydiuk is obviously not active or has no time anymore. |
* added .net core based MtApiService * based on https://github.com/dotnet/wcf * only client side is available in .net core * piping removed, only tcp connection possible * ported MtApi5 and MtApi5TestClient to .net core * updated dependencies and moved to .net5.0 * removed build warning
* aded interfaces for common types * bumped MtApi5 version to 1.0.25 * embed pdb files * added interface for client
I believe the WCF library (https://github.com/dotnet/wcf) already officially supports Named Pipe. So, is it possible to merge this Pull Request now? |
Hi @supermomonga, I tested the named pipes some months ago (when at preview stage), but was not impressed by the performance. This was the PR I used: lazou#21. But maybe I did something wrong 😉 |
@lazou Thanks, I'll check it! |
This PR will add support for .Net Core on the client side (for MtApi5) as requested in #134. Contract files are linked from
MtApiService
to prevent duplicated code. Only duplicated some files due to required changes (unsupported functionality of the doftnet/wcf dependencies).MtApiService
(MtApiServiceNetCore
)