about uscontact

.Net Remoting 에서 static 변수와 함수 사용

Category:
Author: zemna
Date: April 17, 2021
Share this:

static method/field access in remoting

This is probably not a very wellknown fact, but static methods and fields accessed via a remoting proxy, are actually executed locally on the client side. So even though a type is configured to go remote static accesses/invokations dont go remote.

If you need to access static data on the server side, you need to wrap the static access with instance methods / properties or fields.

리모팅에서 static 함수나 변수를 사용하게 되면 실제로는 클라이언트 사이드에서 실행되게 된다.

만일, 서버사이드에서 static 데이터에 접근할 필요가 있을 경우, 인스턴스의 메서드나 속성으로 static 접근을 처리해야 할것이다.

Share this:

Leave a Reply

Your email address will not be published.

ZEMNA.NET

Professional software development agency estalished in Indonesia. We offers website setup, web application development, fulfillment service, and etc.
Follow us
Follow us to get latest news and tutorials.
2022 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️
magnifiercrossmenu