Exemplo n.º 1
0
 public void AddView(string viewName, string assemblyName)
 {
     lock (_lock)
     {
         _viewCache[viewName] = new EmbeddedViewMetadata { Name = viewName, AssemblyFullName = assemblyName };
     }
 }
        public EmbeddedResourceVirtualFile(EmbeddedViewMetadata embeddedViewMetadata, string virtualPath)
            : base(virtualPath)
        {
            if (embeddedViewMetadata == null)
                throw new ArgumentNullException("embeddedViewMetadata");

            this._embeddedViewMetadata = embeddedViewMetadata;
        }
Exemplo n.º 3
0
 public void AddView(string viewName, string assemblyName)
 {
     lock (_lock)
     {
         _viewCache[viewName] = new EmbeddedViewMetadata {
             Name = viewName, AssemblyFullName = assemblyName
         };
     }
 }
Exemplo n.º 4
0
        public EmbeddedResourceVirtualFile(EmbeddedViewMetadata embeddedViewMetadata, string virtualPath)
            : base(virtualPath)
        {
            if (embeddedViewMetadata == null)
            {
                throw new ArgumentNullException("embeddedViewMetadata");
            }

            this._embeddedViewMetadata = embeddedViewMetadata;
        }