D
dcsdcs
Unregistered / Unconfirmed
GUEST, unregistred user!
问大家一个问题.在c# remoting里面singlecall方式系统怎么缓存我的组件
RemotingConfiguration.RegisterWellKnownServiceType((typeofFacL.Srvcomv),"getsqldata.rem",WellKnownObjectMode.SingleCall);
Channelse
rvices.RegisterChannel(tcpc);
组件:
public class SrvcomO:ServicedComponent
{
private Entity.Srvcom f_Srvcom;
public SrvcomO()
{
Entity.Srvcom f_Srvcom=new Entity.Srvcom();
}
public DataSet getsqldata(String insql)
{
Entity.Srvcom tmpsrv=new Entity.Srvcom();
return tmpsrv.getsqldata(insql);
//return f_Srvcom.getsqldata(insql);用这句怎么f_Srvcom例子初始化以后,怎么到这里又显示没有初始化
}
RemotingConfiguration.RegisterWellKnownServiceType((typeofFacL.Srvcomv),"getsqldata.rem",WellKnownObjectMode.SingleCall);
Channelse
rvices.RegisterChannel(tcpc);
组件:
public class SrvcomO:ServicedComponent
{
private Entity.Srvcom f_Srvcom;
public SrvcomO()
{
Entity.Srvcom f_Srvcom=new Entity.Srvcom();
}
public DataSet getsqldata(String insql)
{
Entity.Srvcom tmpsrv=new Entity.Srvcom();
return tmpsrv.getsqldata(insql);
//return f_Srvcom.getsqldata(insql);用这句怎么f_Srvcom例子初始化以后,怎么到这里又显示没有初始化
}