Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

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

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 접근을 처리해야 할것이다.

Leave a Reply

Your email address will not be published. Required fields are marked *