/// <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 }; } }
/// <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; }
/// <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 }; } }
/// <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; }