public static void RemoveStyle(IXmlProvider provider) { using (XmlReader reader = provider.Open()) { string styleName = Scan(reader, Style.NameAttribute); styleLookup.Remove(styleName); } }
public static void AddStyle(IXmlProvider provider) { using (XmlReader reader = provider.Open()) { string styleName = Scan(reader, Style.NameAttribute); styleLookup [styleName] = provider; } }
public GovernmentHandler( IFtpProvider ftpProvider, IXmlProvider xmlProvider) { this.ftpProvider = ftpProvider; this.xmlProvider = xmlProvider; }
/// <summary> /// /// </summary> /// <param name="logger"></param> /// <param name="jsonProviders"></param> /// <param name="xmlProviders"></param> public WebChatProcessRequest(ILogger <WebChatProcessRequest> logger, ICollection <IJsonProvider> jsonProviders, ICollection <IXmlProvider> xmlProviders) { _logger = logger; _jsonProvider = InjectionSelectionCommon.GetImplement(jsonProviders); _xmlProvider = InjectionSelectionCommon.GetImplement(xmlProviders); }
public ImportXmlViewModel(IEventAggregator eventAggregator, IPathProvider filePathProvider, IXmlProvider xmlProvider) { _eventAggregator = eventAggregator; _filePathProvider = filePathProvider; _xmlProvider = xmlProvider; Title = TabNames.ImportToDb.GetDescription(); SourceComponentExists = false; ReplaceIsChecked = false; PDSourceList = new ObservableCollection <string>(); PDStatusList = new ObservableCollection <string>(); ComponentTypeList = new ObservableCollection <string>(); PDSourceList.GetEnumValues <PDSource>(); PDStatusList.GetEnumValues <PDStatus>(); ComponentTypeList.GetEnumValues <ComponentType>(); GetFilePathCommand = new DelegateCommand(GetFolder); GetFilenameCommand = new DelegateCommand(GetFileName); ImportComponentCommand = new DelegateCommand(Execute, CanExecute) .ObservesProperty(() => FileName) .ObservesProperty(() => FilePath) .ObservesProperty(() => AllFilesIsChecked); UpdateComponentCommand = new DelegateCommand(Execute, CanExecute) .ObservesProperty(() => FileName); PublishedCommand = new DelegateCommand(SetPublishedStatus); _eventAggregator.GetEvent <GetFilePathCommand>().Subscribe(FilePathReceived); _eventAggregator.GetEvent <GetFilenameCommand>().Subscribe(FileNameReceived); _eventAggregator.GetEvent <ComponentExistsCommand>().Subscribe(ExistingComponentReceived); _eventAggregator.GetEvent <UpdateComponentSetCommand>().Subscribe(UpdateComponentIdReceived); }
/// <summary> /// /// </summary> /// <param name="logServices"></param> /// <param name="jsonProviders"></param> /// <param name="xmlProviders"></param> public WebChatProcessRequest(ICollection <ILogProvider> logServices, ICollection <IJsonProvider> jsonProviders, ICollection <IXmlProvider> xmlProviders) { _logService = InjectionSelectionCommon.GetImplement(logServices); _jsonProvider = InjectionSelectionCommon.GetImplement(jsonProviders); _xmlProvider = InjectionSelectionCommon.GetImplement(xmlProviders); }
/// <summary> /// 短信服务 /// </summary> public SmsService(AliSmsConfig smsConfig, ICollection <IJsonProvider> jsonProviders, ICollection <IXmlProvider> xmlProviders) { _smsConfig = smsConfig; _jsonProvider = InjectionSelectionCommon.GetImplement(jsonProviders); _xmlProvider = InjectionSelectionCommon.GetImplement(xmlProviders); ValidationCommon.Check(smsConfig, "请完善阿里云短信配置信息", HttpStatus.Err.Name); }
/// <summary> /// 请求接口域 /// </summary> /// <param name="host">域名</param> /// <param name="requestBodyFormat">等待响应的数据类型</param> /// <param name="requestBodyType">请求类型</param> /// <param name="xmlProvider"></param> public HttpClient(string host, RequestBodyFormat requestBodyFormat = null, RequestBodyType requestBodyType = null, IXmlProvider xmlProvider = null) : this(host) { Host = host; _xmlProvider = xmlProvider ?? new XmlProvider(); _requestBodyType = requestBodyType ?? RequestBodyType.ApplicationJson; _requestBodyFormat = requestBodyFormat; }
/// <summary> /// /// </summary> /// <param name="data">数据</param> /// <param name="requestBodyFormat">请求Body格式</param> /// <param name="files">文件信息</param> /// <param name="jsonProvider"></param> /// <param name="xmlProvider"></param> public RequestBody(object data, RequestBodyFormat requestBodyFormat = null, List <RequestMultDataParam> files = null, IJsonProvider jsonProvider = null, IXmlProvider xmlProvider = null) { Data = data ?? new { }; RequestBodyFormat = requestBodyFormat ?? RequestBodyFormat.None; Files = files ?? new List <RequestMultDataParam>(); _jsonProvider = jsonProvider; _xmlProvider = xmlProvider; }
public Service(IDataProvider <TSource> provider, IParser <TSource, TResult> parser, IXmlProvider <TResult> storage) { this.provider = provider; this.parser = parser; this.storage = storage; }
/// <summary> /// 请求接口域 /// </summary> /// <param name="host">域名</param> /// <param name="encoding">编码格式 默认Utf8</param> /// <param name="requestBodyType">请求类型</param> /// <param name="requestBodyFormat">等待响应的数据类型</param> /// <param name="xmlProvider"></param> public HttpClient(string host, Encoding encoding, RequestBodyType requestBodyType = null, RequestBodyFormat requestBodyFormat = null, IXmlProvider xmlProvider = null) : this(host, requestBodyType, requestBodyFormat, xmlProvider ?? new XmlProvider()) { Host = host; _encoding = encoding ?? Encoding.UTF8; _requestBodyFormat = requestBodyFormat; }
public static void RemoveSyntaxMode(IXmlProvider provider) { using (XmlReader reader = provider.Open()) { string mimeTypes = Scan(reader, SyntaxMode.MimeTypesAttribute); foreach (string mimeType in mimeTypes.Split(';')) { syntaxModeLookup.Remove(mimeType); } } }
public ConsoleClient( IDepartmentGenerator departmentGenerator, IEmployeeGenerator employeeGenerator, IProjectGenerator projectGenerator, IReportGenerator reportGenerator, ICompanyContext companyContext, IWorkUnit unitOfWork, IXmlProvider xmlProvider) { this.departmentGenerator = departmentGenerator; this.employeeGenerator = employeeGenerator; this.projectGenerator = projectGenerator; this.reportGenerator = reportGenerator; this.companyContext = companyContext; this.unitOfWork = unitOfWork; this.xmlProvider = xmlProvider; }
public PlaylistRepository(ITrackCriteriaService trackCriteriaService, IXmlProvider xmlProvider) { _trackCriteriaService = trackCriteriaService; _xmlProvider = xmlProvider; }
public ApiController(INzbImportProvider import, IXmlProvider xmlProvider) { _import = import; _xmlProvider = xmlProvider; }
public static void AddStyle (IXmlProvider provider) { using (XmlReader reader = provider.Open ()) { string styleName = Scan (reader, Style.NameAttribute); styleLookup [styleName] = provider; } }
public static void RemoveSyntaxMode (IXmlProvider provider) { using (XmlReader reader = provider.Open ()) { string mimeTypes = Scan (reader, SyntaxMode.MimeTypesAttribute); foreach (string mimeType in mimeTypes.Split (';')) { syntaxModeLookup.Remove (mimeType); } } }
public static void RemoveStyle (IXmlProvider provider) { using (XmlReader reader = provider.Open ()) { string styleName = Scan (reader, ColorScheme.NameAttribute); styleLookup.Remove (styleName); } }
public TrackRepository(ITrackXmlParser trackXmlParser, IXmlProvider xmlProvider) { _trackXmlParser = trackXmlParser; _xmlProvider = xmlProvider; }
public ConfigSettings(IXmlProvider xmlProvider) { _xmlProvider = xmlProvider; PopulateSettings(); }
public RssFeedsRepository(IXmlProvider xmlProvider) { _xmlProvider = xmlProvider; }