本文整理汇总了C#中FubuCore.Descriptions.Description类的典型用法代码示例。如果您正苦于以下问题:C# Description类的具体用法?C# Description怎么用?C# Description使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Description类属于FubuCore.Descriptions命名空间,在下文中一共展示了Description类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Describe
public void Describe(Description description)
{
description.Title = Spec.Name;
description.ShortDescription = "Version " + _version;
description.AddList("Dependencies", _dependencies);
}
开发者ID:modulexcite,项目名称:ripple,代码行数:7,代码来源:NuspecPlan.cs
示例2: Add
public static void Add(string name, Action<Description> configure)
{
var description = new Description();
configure(description);
_bag[name] = description;
}
开发者ID:RyanHauert,项目名称:FubuMVC.Diagnostics,代码行数:7,代码来源:DescriptionBag.cs
示例3: SetUp
public void SetUp()
{
theType = typeof (ValidatedClass);
theRule = new SelfValidatingClassRule(theType);
theDescription = Description.For(theRule);
}
开发者ID:joemcbride,项目名称:fubuvalidation,代码行数:7,代码来源:IValidatedRuleSourceTester.cs
示例4:
void DescribesItself.Describe(Description description)
{
description.Title = "Chrome / " + _contentType.Name;
description.ShortDescription =
"Applies 'chrome' html around the inner behavior's output by executing the chain representing the {0} model"
.ToFormat(_contentType.Name);
}
开发者ID:joemcbride,项目名称:fubumvc,代码行数:7,代码来源:ChromeNode.cs
示例5: Describe
public void Describe(Description description)
{
description.Title = "Create Packages for " + _solution.Name;
description.ShortDescription = "Version " + _version;
description.AddList("Nuspecs", _plans);
}
开发者ID:modulexcite,项目名称:ripple,代码行数:7,代码来源:NuspecGenerationPlan.cs
示例6: Describe
public void Describe(Description description)
{
description.Title = "Wrote file " + LocalFilePath;
description.Properties["ContentType"] = ContentType;
description.Properties["LocalFilePath"] = LocalFilePath;
description.Properties["DisplayName"] = DisplayName;
}
开发者ID:cothienlac86,项目名称:fubumvc,代码行数:7,代码来源:FileOutputReport.cs
示例7: Describe
public void Describe(Description description)
{
description.ShortDescription = "Problems were found for " + _solution.Name;
var list = description.AddList("Problems", _problems);
list.Label = "Problems";
}
开发者ID:bobpace,项目名称:ripple,代码行数:7,代码来源:RippleException.cs
示例8: describes_itself
public void describes_itself()
{
var handler = new RespondWithMessageHandler<Exception>(null);
var description = new Description();
handler.Describe(description);
description.Title.ShouldNotBeNull();
}
开发者ID:RyanHauert,项目名称:FubuTransportation,代码行数:7,代码来源:RespondWithMessageHandlerTester.cs
示例9: Describe
public void Describe(Description description)
{
description.ShortDescription = "Governs the behavior and verbosity of the runtime diagnostics";
description.Properties["Tracing Level"] = TraceLevel.ToString();
description.Properties["Maximum Number of Requests to Keep"] = MaxRequests.ToString();
description.AddList("Authorization Rules for Diagnostics", AuthorizationRights);
}
开发者ID:jbogard,项目名称:fubumvc,代码行数:7,代码来源:DiagnosticsSettings.cs
示例10: Describe
public void Describe(Description description)
{
description.Title = "Stateful Saga Node";
description.ShortDescription = "Applies saga state loading and persistence within this chain";
description.Properties["State Type"] = StateType.FullName;
description.Properties["Message Type"] = MessageType.FullName;
description.AddChild("Repository", Repository);
}
开发者ID:kingreatwill,项目名称:fubumvc,代码行数:8,代码来源:StatefulSagaNode.cs
示例11: Describe
public void Describe(Description description)
{
description.ShortDescription = "Lightning Queues Configuration";
description.Properties[nameof(DefaultPort)] = DefaultPort.ToString();
description.Properties[nameof(MaxDatabases)] = MaxDatabases.ToString();
description.Properties[nameof(MapSize)] = MapSize.ToString();
}
开发者ID:DarthFubuMVC,项目名称:fubumvc,代码行数:8,代码来源:LightningQueueSettings.cs
示例12: createDescription
protected override void createDescription(Description description)
{
description.ShortDescription = _token.Namespace.IsNotEmpty()
? "View {0}.{1}, Condition {2}".ToFormat(_token.Namespace, _token.Name(), ConditionType.Name)
: ToString();
description.Title = "View " + _token.Name();
}
开发者ID:hartez,项目名称:FubuMVC.ViewEngines,代码行数:8,代码来源:ViewNode.cs
示例13: Describe
public void Describe(Description description)
{
description.Title = "Project \"{0}\"".ToFormat(Name);
description.ShortDescription = FilePath;
var list = description.AddList("Dependencies", Dependencies);
list.Label = "Dependencies";
}
开发者ID:bobpace,项目名称:ripple,代码行数:8,代码来源:Project.cs
示例14:
void DescribesItself.Describe(Description description)
{
description.Title = _accessor.ToString();
if (DefaultValue != null)
{
description.Properties["DefaultValue"] = DefaultValue.ToString();
}
}
开发者ID:bobpace,项目名称:fubumvc,代码行数:9,代码来源:RouteParameter.cs
示例15: Describe
public void Describe(Description description)
{
description.Title = Name;
description.ShortDescription = Description;
if (Url.IsNotEmpty())
{
description.Properties["Url"] = Url;
}
}
开发者ID:awelburn,项目名称:FubuCsProjFile,代码行数:10,代码来源:Option.cs
示例16: Describe
public void Describe(Description description)
{
description.Properties[nameof(MinSeconds)] = MinSeconds.ToString();
description.Properties[nameof(MaxSeconds)] = MaxSeconds.ToString();
description.Properties[nameof(TakeOwnershipMessageTimeout)] = TakeOwnershipMessageTimeout.ToString();
description.Properties[nameof(HealthCheckMessageTimeout)] = HealthCheckMessageTimeout.ToString();
description.Properties[nameof(DeactivationMessageTimeout)] = DeactivationMessageTimeout.ToString();
description.Properties[nameof(TaskAvailabilityCheckTimeout)] = TaskAvailabilityCheckTimeout.ToString();
description.Properties[nameof(TaskActivationTimeout)] = TaskActivationTimeout.ToString();
}
开发者ID:RyanHauert,项目名称:fubumvc,代码行数:10,代码来源:HealthMonitoringSettings.cs
示例17: Describe
public void Describe(Description description)
{
var exception = findException(Exception);
if (exception != null)
{
description.Title = exception.GetType().Name;
}
description.ShortDescription = Message;
}
开发者ID:modulexcite,项目名称:ripple,代码行数:10,代码来源:NugetProblem.cs
示例18: DescriptionTextWriter
public DescriptionTextWriter(Description description)
{
if (!description.IsMultiLevel())
{
_report.AddText(description.ToString());
}
else
{
description.AcceptVisitor(this);
}
}
开发者ID:nieve,项目名称:FubuRESTInnovation,代码行数:11,代码来源:DescriptionTextWriter.cs
示例19: Describe
public void Describe(Description description)
{
description.Title = "The described parent";
description.Properties["Color"] = "Orange";
description.Properties["Direction"] = "North";
description.Properties["Name"] = "Max";
description.AddChild("Child1 Something", new DescribedChild());
description.AddChild("Child2 else", new DescribedChild());
description.AddChild("Child3", new DescribedChild());
}
开发者ID:bobpace,项目名称:fubucore,代码行数:11,代码来源:DescriptionTextWriterSmokeTester.cs
示例20: Describe
public void Describe(Description description)
{
description.Title = "Selected writer '{0}'".ToFormat(_writer.Title);
if (_writer.HasExplicitShortDescription())
{
description.Properties["Writer"] = _writer.ShortDescription;
}
description.Properties["Mimetype"] = _mimeType;
}
开发者ID:cothienlac86,项目名称:fubumvc,代码行数:11,代码来源:WriterChoice.cs
注:本文中的FubuCore.Descriptions.Description类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论