小编Joh*_*orn的帖子

如何在单个服务中托管多个Service Fabric Actor类型?

我在这里读到应该可以在同一个服务中托管紧密耦合的ActorTypes,但我似乎无法找到关于如何做到这一点的任何文档.

我认为我可能需要创建自己的ActorService实例并将上下文传递给它,但我没有看到能够从文档中找到正确的API.

有没有人有他们可以分享的例子?

actor azure-service-fabric

9
推荐指数
1
解决办法
1986
查看次数

如何为附加节点类型配置本地群集

我有一个集群配置,在ServiceManifest.xml中指定了两个节点类型

<?xml version="1.0" encoding="utf-8"?>
<ServiceManifest Name="MKopa.M2M.ConfigurationPkg"
                 Version="1.0.0"
                 xmlns="http://schemas.microsoft.com/2011/01/fabric"
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ServiceTypes>
    <!-- This is the name of your ServiceType. 
         This name must match the string used in RegisterServiceType call in Program.cs. -->
    <StatelessServiceType ServiceTypeName="ConfigurationType">
      <PlacementConstraints>(NodeType == Internal)</PlacementConstraints>
    </StatelessServiceType> 
  </ServiceTypes>

  <!-- Code package is your service executable. -->
  <CodePackage Name="Code" Version="1.0.0">
    <EntryPoint>
      <ExeHost>
        <Program>MKopa.M2M.Configuration.Service.exe</Program>
      </ExeHost>
    </EntryPoint>
  </CodePackage>

  <!-- Config package is the contents of the Config directoy under PackageRoot that contains an 
       independently-updateable and versioned set of custom configuration settings for …
Run Code Online (Sandbox Code Playgroud)

azure-service-fabric

6
推荐指数
1
解决办法
1073
查看次数

有没有人使用C#/ Silverlight/WPF开发编辑器/ ide?

我们目前正在ASP.NET MVC中开发一个Web应用程序,它可以从某种类型的IDE中获益,以帮助允许某些元素进行可视化定制.

有人可以推荐一种方法吗?我们想到的可能是使用Silverlight的插件.

有没有人有任何可能有帮助的链接或示例?

c# ide silverlight wpf

2
推荐指数
1
解决办法
893
查看次数

如何按行中的值以编程方式折叠或扩展Kendo Grid Group

我要求将分组网格默认为折叠状态,除非它包含具有特定值的行(Status =="Closed").

我得到了这么远,但是因为dataView只包含分组字段的行数而不是我以前见过的行.

  function collapse_rows() {
        var grid = this.grid;
        var dataView = this.dataSource.view();

        for (var i = 0; i < dataView.length; i++) {
            if (dataView[i].status == "Closed") {
                var uid = dataView[i].uid;
                $("#userQuestionSetGrid tbody").find("tr[data-uid=" + uid + "]").
                closest("tr.k-grouping-row").each(
                  function (e) {
                      e.collapseRow(this);
                  });

            } else {
                var uid = dataView[i].uid;
                $("#userQuestionSetGrid tbody").find("tr[data-uid=" + uid + "]").
                closest("tr.k-grouping-row").each(
                    function (e) {
                        //e.collapseRow(this);
                    });
            }
        }
    }
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc jquery kendo-ui kendo-grid

1
推荐指数
1
解决办法
7079
查看次数