本文整理汇总了C#中IFileReader类的典型用法代码示例。如果您正苦于以下问题:C# IFileReader类的具体用法?C# IFileReader怎么用?C# IFileReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IFileReader类属于命名空间,在下文中一共展示了IFileReader类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: CSharpFileFactory
public CSharpFileFactory(IFileReader fileReader, ICacheEventHelper cacheEventHelper, IVisualStudioEventProxy visualStudioEventProxy, IVisualStudioOpenDocumentManager openDocumentManager)
{
_fileReader = fileReader;
_openDocumentManager = openDocumentManager;
WireUpCacheEvictionEvents(cacheEventHelper, visualStudioEventProxy);
}
开发者ID:prescottadam,项目名称:pMixins,代码行数:7,代码来源:CSharpFileFactory.cs
示例2: pMixinsCodeGeneratorResponseFileWriter
public pMixinsCodeGeneratorResponseFileWriter(IFileWrapper fileWrapper, IFileReader fileReader, ICodeBehindFileHelper codeBehindFileHelper, IVisualStudioOpenDocumentManager visualStudioOpenDocumentManager)
{
_fileWrapper = fileWrapper;
_fileReader = fileReader;
_codeBehindFileHelper = codeBehindFileHelper;
_visualStudioOpenDocumentManager = visualStudioOpenDocumentManager;
}
开发者ID:prescottadam,项目名称:pMixins,代码行数:7,代码来源:pMixinsCodeGeneratorResponseFileWriter.cs
示例3: InputFilter
public InputFilter(IFileReader fileReader)
{
if (fileReader == null)
throw new ArgumentNullException("Needs a valid filereader");
this.fileReader = fileReader;
}
开发者ID:M4ttsson,项目名称:FoodToday,代码行数:7,代码来源:InputFilter.cs
示例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();
}
开发者ID:gilind,项目名称:workshop,代码行数:33,代码来源:Program.cs
示例5: FileReaderLoggerDecorator
public FileReaderLoggerDecorator(
IFileReader decorated,
ILogger logger)
{
this.decorated = decorated;
this.logger = logger;
}
开发者ID:qujck,项目名称:BrownBags,代码行数:7,代码来源:FileReaderLoggerDecorator.cs
示例6: LessHandlerImpl
public LessHandlerImpl(IHttp http, IResponse response, ILessEngine engine, IFileReader fileReader)
{
Http = http;
Response = response;
Engine = engine;
FileReader = fileReader;
}
开发者ID:cynosura,项目名称:dotless,代码行数:7,代码来源:HandlerImpl.cs
示例7: WebImporter
public WebImporter(IFileReader reader,
bool disableUrlRewriting,
bool inlineCssFile,
bool importAllFilesAsLess)
: base(reader, disableUrlRewriting, inlineCssFile, importAllFilesAsLess)
{
}
开发者ID:khoanguyen,项目名称:LessMVCFour,代码行数:7,代码来源:WebImporter.cs
示例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;
}
开发者ID:EckyZero,项目名称:Hashtagg,代码行数:8,代码来源:MockTwitterApi.cs
示例9: HtmlReporter
public HtmlReporter(IHtmlReportConfiguration configuration, IReportBuilder builder,
IReportWriter writer, IFileReader reader)
{
_configuration = configuration;
_builder = builder;
_writer = writer;
_fileReader = reader;
}
开发者ID:GeorgeKimionis,项目名称:TestStack.BDDfy,代码行数:8,代码来源:HtmlReporter.cs
示例10: Importer
public Importer(IFileReader fileReader, bool disableUrlReWriting, bool inlineCssFiles, bool importAllFilesAsLess)
{
FileReader = fileReader;
IsUrlRewritingDisabled = disableUrlReWriting;
InlineCssFiles = inlineCssFiles;
ImportAllFilesAsLess = importAllFilesAsLess;
Imports = new List<string>();
}
开发者ID:brettveenstra,项目名称:dotless,代码行数:8,代码来源:Importer.cs
示例11: ScanningService
public ScanningService(ILineProcessor lineProcessor, IDataAccess dataAccess, IFileReader fileReader)
{
_lineProcessor = lineProcessor;
_dataAccess = dataAccess;
_fileReader = fileReader;
Mapper.CreateMap<WordItem, WordModel>();
}
开发者ID:ruslantsm,项目名称:FolderScan,代码行数:8,代码来源:ScanningService.cs
示例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;
}
开发者ID:jlundstocholm,项目名称:DillPickle,代码行数:8,代码来源:DefaultCommandLineRunner.cs
示例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);
}
开发者ID:rronen10,项目名称:TestStack.BDDfy,代码行数:9,代码来源:TestableHtmlReporter.cs
示例14: FileProvider
public FileProvider(IFileReader fileReader)
{
_fileReader = fileReader;
var defaultSpecifications = new IToggleSpecification[]
{
new TrueSpecification(), new FalseSpecification()
};
_specifications = defaultSpecifications.ToDictionary(x => x.Name, StringComparer.OrdinalIgnoreCase);
}
开发者ID:robink-teleopti,项目名称:Toggle.Net,代码行数:9,代码来源:FileProvider.cs
示例15: RegistrationRepository
internal RegistrationRepository(string file, ISynchronizer synchronizer, IFileReader reader, IFileWriter writer)
{
_synchronizer = synchronizer;
_reader = reader;
_writer = writer;
_serializer = new JavaScriptSerializer();
_file = file;
}
开发者ID:agross,项目名称:netopenspace,代码行数:9,代码来源:RegistrationRepository.cs
示例16: Importer
public Importer(IFileReader fileReader, bool disableUrlReWriting, string rootPath, bool inlineCssFiles, bool importAllFilesAsLess)
{
FileReader = fileReader;
IsUrlRewritingDisabled = disableUrlReWriting;
RootPath = rootPath;
InlineCssFiles = inlineCssFiles;
ImportAllFilesAsLess = importAllFilesAsLess;
Imports = new List<string>();
CurrentDirectory = "";
}
开发者ID:marpstar,项目名称:dotless,代码行数:10,代码来源:Importer.cs
示例17: RazorMailMessage
internal RazorMailMessage(string subject, Assembly assembly, IFileReader fileReader)
{
Message = new MailMessage();
Message.Subject = subject;
Encoding = Encoding.UTF8;
Templates = new TemplateCollection(assembly, fileReader ?? new FileReader());
Set = new ExpandoObject();
}
开发者ID:wduffy,项目名称:RazorMail,代码行数:10,代码来源:RazorMailMessage.cs
示例18: setup
public void setup()
{
// sub the file reader
file_reader = Substitute.For<IFileReader>();
file_reader.Read( "foo_path" ).Returns( "foo_json" );
// sub the json reader
json_reader = Substitute.For<IJsonReader>();
json_reader.Serialize<TestAsset>( "foo_json" ).Returns( new TestAsset() { TestString = "Bar" } );
}
开发者ID:apsdsm,项目名称:unityjson,代码行数:10,代码来源:ReaderUnitTests.cs
示例19: SetupClass
private static ItemDeserializer SetupClass(IPathFacade pathFacade = null,
IEditorLogger logger = null,
IProjectLoader projectLoader = null,
IObjectDumper objectDumper = null,
IXmlDeserializer xmlDeserializer = null,
IFileReader fileReader = null)
{
return
new
ItemDeserializer(pathFacade, logger, projectLoader, objectDumper, xmlDeserializer, fileReader);
}
开发者ID:SimoneLocatelli,项目名称:AncientTimesEditor,代码行数:11,代码来源:ItemDeserializerTest.cs
示例20: Application
public Application(
IApplicationArgumentsGetter applicationArgumentsGetter,
ILoggingSystemInitializer loggingSystemInitializer,
IFileReader<Configuration.Configuration> configurationReader,
ITcpServer tcpServer, IHttpRequestProcessor httpRequestProcessor)
{
_applicationArgumentsGetter = applicationArgumentsGetter;
_loggingSystemInitializer = loggingSystemInitializer;
_configurationReader = configurationReader;
_tcpServer = tcpServer;
_httpRequestProcessor = httpRequestProcessor;
}
开发者ID:vlindos,项目名称:Vlindos,代码行数:12,代码来源:Application.cs
注:本文中的IFileReader类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论