本文整理汇总了C#中IProfile类的典型用法代码示例。如果您正苦于以下问题:C# IProfile类的具体用法?C# IProfile怎么用?C# IProfile使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IProfile类属于命名空间,在下文中一共展示了IProfile类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
public void Initialize(XmlElement config, IEventManager eventManager, IProfile profile) {
this.eventManager = eventManager;
this.profile = profile;
this.eventManager.Subscribe(typeof(IntervalSync), OnInterval);
logger = new Logger(eventManager);
}
示例2: Initialize
public void Initialize(XmlElement config, IEventManager eventManager, IProfile profile)
{
string reposServer = config["RepositoryServer"].InnerText;
_profile = profile;
_respostoryPath =reposServer + config["RepositoryPath"].InnerText;
if (!_usernames.ContainsKey(reposServer))
{
Console.Write(String.Format("Please enter {0} Username : ", reposServer));
_usernames[reposServer] = Console.ReadLine();
Console.Write(String.Format("Please enter {0} Password : ", reposServer));
_passwords[reposServer] = Console.ReadLine();
}
_connector.SetAuthentication(_usernames[reposServer], _passwords[reposServer]);
_eventManager = eventManager;
_eventManager.Subscribe(PubType, PokeRepository);
_connector.Revision += _connector_Revision;
_connector.Error += _connector_Error;
InernalInitialize(config, eventManager, profile);
}
示例3: CopyProfileConfig
// Copy config.cfg to csgo\cfg folder.
public string CopyProfileConfig(IProfile profile)
{
string destCfg = SteamPaths.CfgFolder + "config.cfg";
File.Copy(profile.FolderPath + profile.Config, destCfg, true);
Changes++;
return profile.Config + " succesfully created. \n";
}
示例4: SearchCommand
public SearchCommand(QueryRunner queryRunner, IProfile profile, DocumentIndexRebuilder documentIndexRebuilder, IActivityLogger logger)
{
_queryRunner = queryRunner;
_profile = profile;
_documentIndexRebuilder = documentIndexRebuilder;
_logger = logger;
}
示例5: Initialize
public virtual void Initialize(XmlElement config, IEventManager eventManager, IProfile profile) {
Config = config;
EventManager = eventManager;
Logger = new Logger(eventManager);
Logger.LogVersionOneConfiguration(LogMessage.SeverityType.Info, Config["Settings"]);
}
示例6: Initialize
public void Initialize(XmlElement config, IEventManager eventManager, IProfile profile)
{
eventManager.Subscribe(typeof(LogMessage), HandleLogMessage);
eventManager.Subscribe(typeof(ServiceHostState), HandleServiceHostStateMessage);
ConfigureAppenders(config);
}
示例7: Initialize
public virtual void Initialize(XmlElement config, IEventManager eventManager, IProfile profile) {
folderFilterPattern = config["Filter"].InnerText;
suiteName = config["SuiteName"].InnerText;
monitor = new RecyclingFileMonitor(profile, config["Watch"].InnerText, folderFilterPattern, Process);
this.eventManager = eventManager;
this.eventManager.Subscribe(EventSinkType, monitor.ProcessFolder);
}
示例8: BuildSearchIndexesCommand
public BuildSearchIndexesCommand(ITpBus bus, IProfileCollection profileCollection, IProfile profile, IPluginContext pluginContext, IPluginMetadata pluginMetadata)
{
_bus = bus;
_profileCollection = profileCollection;
_profile = profile;
_pluginContext = pluginContext;
_pluginMetadata = pluginMetadata;
}
示例9: SerializeProfiles
public void SerializeProfiles(IProfile profile)
{
using (StreamWriter writer = new StreamWriter(@"..\..\Database\Users\Profiles.txt", true))
{
writer.WriteLine();
writer.Write(profile);
}
}
示例10: UserSettingsService
public UserSettingsService(ISecurityService securityService, IProfile profileRepository)
{
Security = securityService;
Repository = profileRepository;
}
示例11: VirtualNode
private VirtualNode(IProfile rootnode, IProfile node)
{
if (!node.Path.StartsWith(rootnode.Path))
throw new ArgumentOutOfRangeException("node");
_rootnode = rootnode;
_node = node;
}
示例12: Submit
public void Submit(IProfile profile)
{
var message = string.Format("{0}\n{1}\n{2}",
profile.Name,
profile.Age,
profile.Mail);
MessageBox.Show(message, "送信");
}
示例13: QueryContacts
private IDisposable QueryContacts(IProfile profile)
{
//TODO: What to do when a failure occurs?
return _contactQueryAggregator.Search(profile)
.SubscribeOn(_schedulerProvider.Concurrent)
.ObserveOn(_schedulerProvider.Dispatcher)
.Subscribe(_contact);
}
示例14: InternalInitialize
protected override void InternalInitialize(XmlElement config, IEventManager eventmanager, IProfile profile)
{
ReferenceExpression = config[ReferenceExpressionField].InnerText;
repositoryFriendlyNameSpec = config[RepositoryFriendlyNameSpecField].InnerText;
LoadLinkInfo(config[LinkNode]);
svnInfo = connector.GetSvnInformation(RepositoryPath);
}
示例15: AreEqual
public virtual bool AreEqual(IProfileModel model, IProfile entity)
{
return NameableEntityMapper.AreEqual(model, entity)
// Profile Properties
// <None>
// Related Objects
// <None>
;
}