Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Attic / MVC / Castle.MVC / StatePersister / IStatePersister.cs
blob4563a9cad36d5d0ebb9cdc1e60f6694e36fb9c35
1 #region Apache Notice
2 /*****************************************************************************
3 *
4 * Castle.MVC
5 *
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
9 *
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 ********************************************************************************/
19 #endregion
21 #region Autors
23 /************************************************
24 * Gilles Bayon
25 *************************************************/
26 #endregion
28 using System;
29 using System.Collections;
31 using System.Security.Principal;
33 using Castle.MVC.States;
35 namespace Castle.MVC.StatePersister
37 /// <summary>
38 /// This interface defines how State maintains.
39 /// </summary>
40 public interface IStatePersister
43 /// <summary>
44 /// State factory
45 /// </summary>
46 IStateFactory StateFactory { get; set; }
48 /// <summary>
49 /// Save the state on the persistence medium.
50 /// </summary>
51 void Save(IState state);
53 /// <summary>
54 /// Loads the saved state.
55 /// </summary>
56 /// <returns>The saved state</returns>
57 IState Load();
60 /// <summary>
61 /// Release a state
62 /// </summary>
63 /// <param name="state">The state to release.</param>
64 void Release(IState state);