当前位置: 首页>>代码示例>>C#>>正文


C# Descriptions.Description类代码示例

本文整理汇总了C#中FubuCore.Descriptions.Description的典型用法代码示例。如果您正苦于以下问题:C# Description类的具体用法?C# Description怎么用?C# Description使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Description类属于FubuCore.Descriptions命名空间,在下文中一共展示了Description类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的FubuCore.Descriptions.Description类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。