public static void SetupXpoLayer(Session session) { EndpointAddress address = new EndpointAddress("http://localhost:54177/XPOService.svc"); BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = Int32.MaxValue; DataStoreClient dataStore = new DataStoreClient(binding, address); XpoDefault.DataLayer = new SimpleDataLayer(dataStore); XpoDefault.Session = session; }
public static void SetupXpoLayer() { EndpointAddress address = new EndpointAddress(@"http://demos.devexpress.com/Services/WcfXpoSCNew/XPOService.svc"); BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = Int32.MaxValue; DataStoreClient dataStore = new DataStoreClient(binding, address); XpoDefault.DataLayer = new SimpleDataLayer(dataStore); XpoDefault.Session = null; }
public static IDataStore GetDataStore(string connectionString) { EndpointAddress address = new EndpointAddress(connectionString); BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = Int32.MaxValue; binding.ReaderQuotas.MaxArrayLength = Int32.MaxValue; binding.ReaderQuotas.MaxDepth = Int32.MaxValue; binding.ReaderQuotas.MaxBytesPerRead = Int32.MaxValue; binding.ReaderQuotas.MaxStringContentLength = Int32.MaxValue; try { IDataStore store = new DataStoreClient(binding, address); store.AutoCreateOption.ToString(); return(store); } catch (Exception e) { throw new DevExpress.Xpo.DB.Exceptions.UnableToOpenDatabaseException(connectionString, e); } }
private void LoadUserInfo(long guid) { DataStoreClient dsc = LobbyServer.Instance.DataStoreConnector; dsc.Load <DS_UserInfo>(guid.ToString(), (e, d) => LoadUserInfoCallback(e, d, guid)); }
internal void Init(PBChannel channel) { m_DataStoreClient = new DataStoreClient(channel, this); }