예제 #1
0
 /// <summary>
 /// Add view to table.
 /// </summary>
 /// <param name="viewName">The view name.</param>
 /// <param name="assemblyName">The assembly name.</param>
 public void AddView(string viewName, string assemblyName)
 {
     lock (_lock)
     {
         _viewCache[viewName] = new EmbeddedViewMetadata { Name = viewName, AssemblyFullName = assemblyName };
     }
 }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of EmbeddedVirtualFile class.
        /// </summary>
        /// <param name="embeddedViewMetadata">The embedded view meta data object.</param>
        /// <param name="virtualPath">The virtual path to the resource represented by this instance.</param>
        public EmbeddedVirtualFile(EmbeddedViewMetadata embeddedViewMetadata, string virtualPath)
            : base(virtualPath)
        {
            if (embeddedViewMetadata == null)
                throw new ArgumentNullException("embeddedViewMetadata");

            this._embeddedViewMetadata = embeddedViewMetadata;
        }
예제 #3
0
 /// <summary>
 /// Add view to table.
 /// </summary>
 /// <param name="viewName">The view name.</param>
 /// <param name="assemblyName">The assembly name.</param>
 public void AddView(string viewName, string assemblyName)
 {
     lock (_lock)
     {
         _viewCache[viewName] = new EmbeddedViewMetadata {
             Name = viewName, AssemblyFullName = assemblyName
         };
     }
 }
예제 #4
0
        /// <summary>
        /// Initializes a new instance of EmbeddedVirtualFile class.
        /// </summary>
        /// <param name="embeddedViewMetadata">The embedded view meta data object.</param>
        /// <param name="virtualPath">The virtual path to the resource represented by this instance.</param>
        public EmbeddedVirtualFile(EmbeddedViewMetadata embeddedViewMetadata, string virtualPath)
            : base(virtualPath)
        {
            if (embeddedViewMetadata == null)
            {
                throw new ArgumentNullException("embeddedViewMetadata");
            }

            this._embeddedViewMetadata = embeddedViewMetadata;
        }