Add Newtonsoft.Json to the references of TestSiteBrail
[castle.git] / MonoRail / Castle.MonoRail.Framework / IViewSource.cs
blob40f13a146e9fb2363bf968889fa330a412e57c34
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.MonoRail.Framework
17 using System.IO;
19 /// <summary>
20 /// Represents a view template source
21 /// </summary>
22 public interface IViewSource
24 /// <summary>
25 /// Opens the view stream.
26 /// </summary>
27 /// <returns></returns>
28 Stream OpenViewStream();
30 /// <summary>
31 /// Gets or sets the last updated.
32 /// </summary>
33 /// <value>The last updated.</value>
34 long LastUpdated { get; set; }
36 /// <summary>
37 /// Gets the last modified.
38 /// </summary>
39 /// <value>The last modified.</value>
40 long LastModified { get; }
42 /// <summary>
43 /// Gets a value indicating whether cache is enabled for it.
44 /// </summary>
45 /// <value><c>true</c> if cache is enabled for it; otherwise, <c>false</c>.</value>
46 bool EnableCache { get; }