Exemplo n.º 1
0
        protected CompilerRunnerBase(IContentType contentType)
        {
            Mef.SatisfyImportsOnce(this);
            SourceContentType = contentType;
            TargetContentType = FileExtensionRegistry.GetContentTypeForExtension(TargetExtension.TrimEnd('.'));

            _listeners = Mef.GetAllImports <IFileSaveListener>(TargetContentType);
            Settings   = WESettings.Instance.ForContentType <ICompilerInvocationSettings>(contentType);
        }