데이터베이스 상호 작용 및 비즈니스 개체를 클라이언트가 아닌 서버에 유지할 수 있도록 Remoting 클래스 라이브러리를 개발 중입니다.C# Remoting classes organization
내 자신의 개체를 클라이언트에 반환하여 서버 자체를 통해 상호 작용할 수 있기를 바랍니다. 예를 들어
(반 의사) :
서버
class Database { ... }
class Utility
{
public User getUser(username)
{
return new User(username);
}
}
class User
{
public string[] getPerms()
{
return Database.query("select * from permission where user = " + this.username);
}
}
클라이언트
Utility utility = (Utility)getRemotingClass("Utility");
User user = Utility.getUser("admin");
string[] perms = user.getPerms();
어떻게 내 수업/네임 스페이스를 구성 할 수 있습니다? 특히 시스템의 클래스 참조 및 확장성에 대해 궁금합니다.
모든 종류의 비판/제안은 정말 감사하겠습니다.
왜 WCF를 사용하지 않으시겠습니까? – Incognito
나는 그것을 잘 모르기 때문에. 나는 그것을 시도 할 것이다. – Keeper