[DevExpress Support Team: CLONED FROM T570966: How to migrate to the new Middle-Tier implementation after upgrading to XAF v17.2+]
Hi,
Can you please confirm the correct usage of cache node:
C#Func<IDataLayer> dataLayerProvider = () =>
{
// enable data cache store
var mainDataStore = XpoDefault.GetConnectionProvider(connectionString, AutoCreateOption.DatabaseAndSchema);
var root = new DataCacheRoot(mainDataStore);
var node = new DataCacheNode(root);
var dataLayer = new ThreadSafeDataLayer(XpoTypesInfoHelper.GetXpoTypeInfoSource().XPDictionary, node);
return dataLayer;
};
Func<IDataServerSecurity> dataServerSecurityProvider = () =>
{
SecurityStrategyComplex security = new SecurityStrategyComplex(typeof(PermissionPolicyUser), typeof(PermissionPolicyRole), new AuthenticationStandard());
security.SupportNavigationPermissionsForTypes = false;
return security;
};
WcfXafServiceHost serviceHost = new WcfXafServiceHost(dataLayerProvider, dataServerSecurityProvider, true, InstanceContextMode.PerSession);
serviceHost.AddServiceEndpoint(typeof(IWcfXafDataServer), WcfDataServerHelper.CreateNetTcpBinding(), "net.tcp://127.0.0.1:1451/DataServer");
Hello Maxime,
We need additional time to find an appropriate solution for you. Please bear with us.