Hi,
Playing around with the console xDataServer found under your demos here: ....\TMS XData\Demos\web\music\XDataMusicServer
I converted this application from a console application to a vcl one, and everything seems to be ok. I then added a new datamodule to this new project. In this new module I do the following:
uses
XData.Server.Module,
Aurelius.Engine.ObjectManager;
procedure TNewDataModule.SomeProcedure;
var
Manager: TObjectManager;
begin
Manager := TXDataOperationContext.Current.GetManager;
//The above raises an exception as TXDataOperationContext.Current is nil;
end;
My question is how can is access the current objectmanger in a my new datamodule?