當前位置: 首頁>>代碼示例>>C#>>正文


C# BehaviorGraph類代碼示例

本文整理匯總了C#中BehaviorGraph的典型用法代碼示例。如果您正苦於以下問題:C# BehaviorGraph類的具體用法?C# BehaviorGraph怎麽用?C# BehaviorGraph使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BehaviorGraph類屬於命名空間,在下文中一共展示了BehaviorGraph類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: BehaviorGraphWriter

 public BehaviorGraphWriter(BehaviorGraph graph, IUrlRegistry urls, IServiceLocator services)
 {
     _graph = graph;
     _urls = urls;
     _services = services;
     _diagnosticsNamespace = GetType().Namespace;
 }
開發者ID:sbartlett,項目名稱:fubumvc,代碼行數:7,代碼來源:BehaviorGraphWriter.cs

示例2: SetUp

        public void SetUp()
        {
            var registry = new FubuRegistry();
            registry.Import<ApplyWindowsAuthentication>();

            theGraph = BehaviorGraph.BuildFrom(registry);
        }
開發者ID:RobertTheGrey,項目名稱:FubuMVC.Authentication,代碼行數:7,代碼來源:setup_with_windows_authentication.cs

示例3: Configure

 public void Configure(BehaviorGraph graph)
 {
     graph.Behaviors
         .Where(x => !x.IsPartialOnly)
         .Where(x => x.ResourceType().CanBeCastTo<JsonMessage>() || x.InputType().CanBeCastTo<JsonMessage>())
         .Each(x => x.MakeAsymmetricJson());
 }
開發者ID:roend83,項目名稱:fubumvc,代碼行數:7,代碼來源:JsonMessageInputConvention.cs

示例4: SetUp

        public void SetUp()
        {
            var registry = new FubuRegistry();
            registry.Import<ServerSentEventsExtension>();

            theGraph = BehaviorGraph.BuildFrom(registry);
        }
開發者ID:DarthFubuMVC,項目名稱:FubuMVC.ServerSentEvents,代碼行數:7,代碼來源:ServerSentEventExtensionIntegratedTester.cs

示例5: PartialFactory

 public PartialFactory(BehaviorGraph graph, IBehaviorFactory factory, ServiceArguments arguments, ICurrentChain currentChain)
 {
     _graph = graph;
     _factory = factory;
     _arguments = arguments;
     _currentChain = currentChain;
 }
開發者ID:ketiko,項目名稱:fubumvc,代碼行數:7,代碼來源:IPartialFactory.cs

示例6: SetUp

 public void SetUp()
 {
     theGraph = BehaviorGraph.BuildFrom(x =>
     {
         x.Actions.IncludeClassesSuffixedWithController();
     });
 }
開發者ID:aluetjen,項目名稱:fubumvc,代碼行數:7,代碼來源:BehaviorGraph_Logging_IntegratedTester.cs

示例7: SetUp

        public void SetUp()
        {
            var registry = new FubuRegistry();
            registry.Actions.IncludeType<RouteAliasController>();

            theGraph = BehaviorGraph.BuildFrom(registry);
        }
開發者ID:kingreatwill,項目名稱:fubumvc,代碼行數:7,代碼來源:UrlAliasAttributeTester.cs

示例8: Configure

 public void Configure(BehaviorGraph graph)
 {
     graph.Behaviors
         .Where(x => !x.IsPartialOnly)
         .Where(x => x.HasResourceType() && !x.HasOutput())
         .Each(x => x.ApplyConneg());
 }
開發者ID:roend83,項目名稱:fubumvc,代碼行數:7,代碼來源:DefaultOutputPolicy.cs

示例9: beforeAll

        public void beforeAll()
        {
            var registry = new FubuRegistry();
            registry.Actions.IncludeType<Controller1>();

            _graph = BehaviorGraph.BuildFrom(registry);
        }
開發者ID:bobpace,項目名稱:fubumvc,代碼行數:7,代碼來源:RouteRankingIntegratedTester.cs

示例10: SetUp

        public void SetUp()
        {
            graph = new BehaviorGraph(null);
            matcher = new ActionSourceMatcher();

            pool = new TypePool();
        }
開發者ID:bbehrens,項目名稱:fubumvc,代碼行數:7,代碼來源:ActionSourceMatcherTester.cs

示例11: Configure

 public void Configure(BehaviorGraph graph)
 {
     graph.Behaviors
         .Where(x => x.ResourceType().CanBeCastTo<AjaxContinuation>())
         .ToList()
         .Each(Modify);
 }
開發者ID:NeilSorensen,項目名稱:fubumvc,代碼行數:7,代碼來源:OutputBeforeAjaxContinuationPolicy.cs

示例12: Configure

 public void Configure(BehaviorGraph graph)
 {
     graph
         .Actions()
         .Where(c => !c.HandlerType.Namespace.Contains("Login") && !c.HandlerType.Namespace.Contains("Home"))
         .Each(c => c.WrapWith<AuthenticationRequiredBehavior>());
 }
開發者ID:henninga,項目名稱:FubuDate,代碼行數:7,代碼來源:AuthenticationConvention.cs

示例13: Configure

 public void Configure(BehaviorGraph graph)
 {
     graph
         .Actions()
         .Where(c => c.HasAttribute<SecureAttribute>())
         .Each(c => c.WrapWith<AuthenticationRequiredBehaviour>());
 }
開發者ID:chester89,項目名稱:FubuSamples,代碼行數:7,代碼來源:AuthenticationConvention.cs

示例14: Configure

        public void Configure(BehaviorGraph graph)
        {
            var jobs = graph.Settings.Get<PollingJobSettings>().Jobs;

            jobs.Select(x => x.ToObjectDef())
                .Each(x => graph.Services.AddService(typeof(IPollingJob), x));
        }
開發者ID:RyanHauert,項目名稱:FubuTransportation,代碼行數:7,代碼來源:RegisterPollingJobs.cs

示例15:

        void IConfigurationAction.Configure(BehaviorGraph graph)
        {
            var chain = graph.BehaviorFor(_route);
            _nodes.Each(chain.AddToEnd);

            //graph.Observer.RecordStatus("Adding explicit route {0}".ToFormat(_route));
        }
開發者ID:jemacom,項目名稱:fubumvc,代碼行數:7,代碼來源:ExplicitRouteConfiguration.cs


注:本文中的BehaviorGraph類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。