public static void ClearContext() { context = null; }
static void InitContext() { context = new DefaultScopeOfflineContext("ListsManagerCache", new Uri("http://[YourHostName]/listservice/defaultscopesyncservice.svc/")); context.CacheController.ControllerBehavior.AddScopeParameters("UserID", SettingsViewModel.Instance.UserId.ToString()); context.CacheController.ControllerBehavior.SerializationFormat = SerializationFormat.ODataJSON; }