public void readExternal (java.io.ObjectInput input) {
				lock (this) {
					_needSessionPersistence = input.readBoolean ();
					if (!_needSessionPersistence) { //nothing has been written 
						if (_items == null)
							_items = new SessionStateItemCollection ();
						if (_staticObjects == null)
							_staticObjects = new HttpStaticObjectsCollection ();
						return;
					}

					ObjectInputStream ms = new ObjectInputStream (input);
					System.IO.BinaryReader br = new System.IO.BinaryReader (ms);
					_items = SessionStateItemCollection.Deserialize (br);
					_staticObjects = HttpStaticObjectsCollection.Deserialize (br);
				}
			}
Esempio n. 2
0
			public void readExternal (java.io.ObjectInput __p1)
			{
				Page page = CurrentPage;
				ObjectStateFormatter osf = new ObjectStateFormatter (page);
				ObjectInputStream inputStream = new ObjectInputStream (__p1);

				if (page.NeedViewStateEncryption || page.EnableViewStateMac)
					_state = osf.Deserialize ((string) inputStream.readObject ());
				else
					_state = osf.Deserialize (inputStream);
			}