Represents a source of views in an assembly resource.
		/// <summary>
		/// Initializes this instance. Implementors
		/// can use this method to perform initialization
		/// </summary>
		public override void Initialize()
		{
			base.Initialize();
			var asm = this.GetType().Assembly;
			resourceNames = asm.GetManifestResourceNames();
			asmName = asm.GetName().Name;
			var asminfo = new AssemblySourceInfo(asm, asmName.ToLower());
			if (!this.Context.Services.ViewSourceLoader.AssemblySources.Cast<AssemblySourceInfo>().Any(asi=>asi.AssemblyName==asminfo.AssemblyName))
				this.Context.Services.ViewSourceLoader.AddAssemblySource(asminfo);
		}
 public void AddAssemblySource(AssemblySourceInfo assemblySourceInfo) {
     
 }
		/// <summary>
		/// Adds the assembly source.
		/// </summary>
		/// <param name="assemblySourceInfo">The assembly source info.</param>
		public void AddAssemblySource(AssemblySourceInfo assemblySourceInfo)
		{
			additionalAssemblySources.Add(assemblySourceInfo);
		}
Exemple #4
0
 /// <summary>
 /// Adds the assembly source.
 /// </summary>
 /// <param name="assemblySourceInfo">The assembly source info.</param>
 public void AddAssemblySource(AssemblySourceInfo assemblySourceInfo)
 {
     additionalAssemblySources.Add(assemblySourceInfo);
 }