本文整理汇总了C#中IFileReader类的典型用法代码示例。如果您正苦于以下问题:C# IFileReader类的具体用法?C# IFileReader怎么用?C# IFileReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IFileReader类属于命名空间,在下文中一共展示了IFileReader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CSharpFileFactory
public CSharpFileFactory(IFileReader fileReader, ICacheEventHelper cacheEventHelper, IVisualStudioEventProxy visualStudioEventProxy, IVisualStudioOpenDocumentManager openDocumentManager)
{
_fileReader = fileReader;
_openDocumentManager = openDocumentManager;
WireUpCacheEvictionEvents(cacheEventHelper, visualStudioEventProxy);
}
示例2: pMixinsCodeGeneratorResponseFileWriter
public pMixinsCodeGeneratorResponseFileWriter(IFileWrapper fileWrapper, IFileReader fileReader, ICodeBehindFileHelper codeBehindFileHelper, IVisualStudioOpenDocumentManager visualStudioOpenDocumentManager)
{
_fileWrapper = fileWrapper;
_fileReader = fileReader;
_codeBehindFileHelper = codeBehindFileHelper;
_visualStudioOpenDocumentManager = visualStudioOpenDocumentManager;
}
示例3: InputFilter
public InputFilter(IFileReader fileReader)
{
if (fileReader == null)
throw new ArgumentNullException("Needs a valid filereader");
this.fileReader = fileReader;
}
示例4: ExecuteFiles
private static void ExecuteFiles(IFileReader fileReader, string[] files)
{
FileManager manager = new FileManager();
manager.Printed += Manager_Printed;
for (int fileIndex = 0; fileIndex < files.Length; fileIndex++)
{
try
{
string fileName = files[fileIndex];
System.Console.WriteLine("file: " + fileName + ":");
System.Console.WriteLine("-------------------------------------------------------------------");
StringCollection comands = fileReader.Read(fileName);
StringCollectionToConsole(comands);
System.Console.WriteLine();
manager.Reset();
manager.ExecuteBatch(comands);
System.Console.WriteLine(manager);
System.Console.WriteLine();
}
catch (Exception ex)
{
System.Console.WriteLine(manager);
System.Console.WriteLine(ex.Message);
System.Console.WriteLine();
}
}
Pause();
}
示例5: FileReaderLoggerDecorator
public FileReaderLoggerDecorator(
IFileReader decorated,
ILogger logger)
{
this.decorated = decorated;
this.logger = logger;
}
示例6: LessHandlerImpl
public LessHandlerImpl(IHttp http, IResponse response, ILessEngine engine, IFileReader fileReader)
{
Http = http;
Response = response;
Engine = engine;
FileReader = fileReader;
}
示例7: WebImporter
public WebImporter(IFileReader reader,
bool disableUrlRewriting,
bool inlineCssFile,
bool importAllFilesAsLess)
: base(reader, disableUrlRewriting, inlineCssFile, importAllFilesAsLess)
{
}
示例8: MockTwitterApi
public MockTwitterApi ()
{
_reader = IocContainer.GetContainer().Resolve<IFileReader>();
_settings = new JsonSerializerSettings ();
_settings.DateFormatString = "ddd MMM dd HH:mm:ss zzzz yyyy";
_settings.Culture = CultureInfo.InvariantCulture;
}
示例9: HtmlReporter
public HtmlReporter(IHtmlReportConfiguration configuration, IReportBuilder builder,
IReportWriter writer, IFileReader reader)
{
_configuration = configuration;
_builder = builder;
_writer = writer;
_fileReader = reader;
}
示例10: Importer
public Importer(IFileReader fileReader, bool disableUrlReWriting, bool inlineCssFiles, bool importAllFilesAsLess)
{
FileReader = fileReader;
IsUrlRewritingDisabled = disableUrlReWriting;
InlineCssFiles = inlineCssFiles;
ImportAllFilesAsLess = importAllFilesAsLess;
Imports = new List<string>();
}
示例11: ScanningService
public ScanningService(ILineProcessor lineProcessor, IDataAccess dataAccess, IFileReader fileReader)
{
_lineProcessor = lineProcessor;
_dataAccess = dataAccess;
_fileReader = fileReader;
Mapper.CreateMap<WordItem, WordModel>();
}
示例12: DefaultCommandLineRunner
public DefaultCommandLineRunner(IActionStepsFinder actionStepsFinder, IFeatureRunner featureRunner, IFeatureFileFinder featureFileFinder, IGherkinParser gherkinParser, IFileReader fileReader)
{
this.actionStepsFinder = actionStepsFinder;
this.featureRunner = featureRunner;
this.featureFileFinder = featureFileFinder;
this.gherkinParser = gherkinParser;
this.fileReader = fileReader;
}
示例13: TestableHtmlReporter
public TestableHtmlReporter(IHtmlReportConfiguration configuration, IReportBuilder reportBuilder, IReportWriter writer, IFileReader fileReader)
: base(configuration, reportBuilder, writer, fileReader)
{
Configuration = configuration;
ReportBuilder = reportBuilder;
Writer = writer;
FileReader = fileReader;
Configuration.RunsOn(Arg.Any<Story>()).Returns(true);
}
示例14: FileProvider
public FileProvider(IFileReader fileReader)
{
_fileReader = fileReader;
var defaultSpecifications = new IToggleSpecification[]
{
new TrueSpecification(), new FalseSpecification()
};
_specifications = defaultSpecifications.ToDictionary(x => x.Name, StringComparer.OrdinalIgnoreCase);
}
示例15: RegistrationRepository
internal RegistrationRepository(string file, ISynchronizer synchronizer, IFileReader reader, IFileWriter writer)
{
_synchronizer = synchronizer;
_reader = reader;
_writer = writer;
_serializer = new JavaScriptSerializer();
_file = file;
}