Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

remove remoting block for .NET standard#1170

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lostmsu merged 2 commits intopythonnet:masterfromkoubaa:remote-remoting
Jun 24, 2020

Conversation

koubaa
Copy link
Contributor

@koubaakoubaa commentedJun 23, 2020
edited
Loading

What does this implement/fix? Explain your changes.

Remove remoting support

Does this close any currently open issues?

Removes some dependency on .NET framework

Any other comments?

...

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

@lostmsu
Copy link
Member

If this is the only line where it is used, can we replace it with runtime feature detection instead of completely removing a feature?

E.g.

staticreadonlyFunc<object,bool>IsTransparentProxy=GetIsTransparentProxy();staticboolNever(object_)=>false;staticFunc<object,bool>GetIsTransparentProxy(){varremoting=typeof(int).Assembly.GetType("System.Runtime.Remoting.RemotingServices");if(remotingisnull)returnNever;varisProxy=remoting.GetMethod("IsTransparentProxy",new[]{typeof(object)});if(isProxyisnull)returnNever;return(Func<object,bool>)Delegate.CreateDelegate(typeof(Func<object,bool>),isProxy,throwOnBindFailure:true);}

P.S.@filmor Travis CI results are not being picked up...

@koubaa
Copy link
ContributorAuthor

@lostmsu its a good idea but this isn't a tested feature and I don't want to build a test for it. Are you confident your code will work without tests?

@lostmsu
Copy link
Member

lostmsu commentedJun 23, 2020
edited
Loading

@koubaa the calls to this method probably have some coverage, so if it crashes, we should see in CI. The feature itself might be broken with this, but IMO it is better, than removing it completely.

Besides, I did some testing:

.NET Framework

>usingSystem;>staticboolNever(object_)=>false;>>staticFunc<object,bool>GetIsTransparentProxy(){.varremoting=typeof(int).Assembly.GetType("System.Runtime.Remoting.RemotingServices");.if(remotingisnull)returnNever;..varisProxy=remoting.GetMethod("IsTransparentProxy",new[]{typeof(object)});.if(isProxyisnull)returnNever;..return(Func<object,bool>)Delegate.CreateDelegate(.typeof(Func<object,bool>),isProxy,.throwOnBindFailure:true);.}>vard=GetIsTransparentProxy();>dFunc<object,bool>{Method=[BooleanIsTransparentProxy(System.Object)],Target=null}>d(newobject())false

.NET Core

>Console.WriteLine(IsTransparentProxy.Method);BooleanNever(System.Object)

Mono

>vard=GetIsTransparentProxy();>dFunc<object,bool>{Method=[BooleanIsTransparentProxy(System.Object)],Target=null}

@koubaa
Copy link
ContributorAuthor

@lostmsu as long as I'm not signing up for testing remoting, I am ok with that. I'll push an update with your change and remove the changelog entry

@lostmsu
Copy link
Member

@koubaa , yeah, let's do that.

@koubaakoubaa changed the titleremove remotingremove remoting block for .NET standardJun 24, 2020
@codecov-commenter
Copy link

codecov-commenter commentedJun 24, 2020
edited
Loading

Codecov Report

Merging#1170 intomaster willnot change coverage.
The diff coverage isn/a.

Impacted file tree graph

@@           Coverage Diff           @@##           master    #1170   +/-   ##=======================================  Coverage   86.25%   86.25%           =======================================  Files           1        1             Lines         291      291           =======================================  Hits          251      251             Misses         40       40
FlagCoverage Δ
#setup_linux64.94% <ø> (ø)
#setup_windows72.50% <ø> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updateec424bb...82bdb9a. Read thecomment docs.

@lostmsulostmsu merged commit7a9dcfa intopythonnet:masterJun 24, 2020
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull requestJun 29, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorfilmor approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@koubaa@lostmsu@codecov-commenter@filmor

[8]ページ先頭

©2009-2025 Movatter.jp