Fix the build.
[castle.git] / MonoRail / Castle.MonoRail.Framework / IViewSource.cs
blob726a93f31aab06c9a5696e3da041a199ee73b86b
1 // Copyright 2004-2007 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;
18 using System.IO;
20 /// <summary>
21 /// Represents a view template source
22 /// </summary>
23 public interface IViewSource
25 /// <summary>
26 /// Opens the view stream.
27 /// </summary>
28 /// <returns></returns>
29 Stream OpenViewStream();
31 /// <summary>
32 /// Gets or sets the last updated.
33 /// </summary>
34 /// <value>The last updated.</value>
35 long LastUpdated { get; set; }
37 /// <summary>
38 /// Gets the last modified.
39 /// </summary>
40 /// <value>The last modified.</value>
41 long LastModified { get; }
43 /// <summary>
44 /// Gets a value indicating whether cache is enabled for it.
45 /// </summary>
46 /// <value><c>true</c> if cache is enabled for it; otherwise, <c>false</c>.</value>
47 bool EnableCache { get; }