.NET Remoting и объекты возвращаемые marshaled обектом
От: Xander  
Дата: 15.07.04 08:13
Оценка:
Сконфигурировани remoting сервер так:

ChannelServices.RegisterChannel(new HttpServerChannel(888));

RemotingConfiguration.RegisterWellKnownServiceType(
typeof(XLReportRemote),
"XLReportRemote",
WellKnownObjectMode.Singleton
);

Имеем некий объект типа XLReport создающийся методом marshaled обекта:

public class XLReportRemote : MarshalByRefObject
{
public XLReportRemote() : base()

{

}
public XLReport CreateXLReport()
{
return new XLReport();
}

public override object InitializeLifetimeService()
{
return null;
}
}

[ToolboxBitmap(typeof(XLReport), "XLReport1.ico"), Serializable]
public class XLReport : System.ComponentModel.Component
{
public string Template;

public ArrayList Datadources;

...
}

Так вот, изменение свойсва Template проходит, а при каждой итерации добавления в Datasources там как не было, так и нет ни одного объекта, в чем проблема?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.