2 /*****************************************************************************
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 ********************************************************************************/
23 /************************************************
25 *************************************************/
29 using System
.Collections
;
31 using System
.Security
.Principal
;
33 using Castle
.MVC
.States
;
35 namespace Castle
.MVC
.StatePersister
38 /// This interface defines how State maintains.
40 public interface IStatePersister
46 IStateFactory StateFactory { get; set; }
49 /// Save the state on the persistence medium.
51 void Save(IState state
);
54 /// Loads the saved state.
56 /// <returns>The saved state</returns>
63 /// <param name="state">The state to release.</param>
64 void Release(IState state
);