我在这里读到应该可以在同一个服务中托管紧密耦合的ActorTypes,但我似乎无法找到关于如何做到这一点的任何文档.
我认为我可能需要创建自己的ActorService实例并将上下文传递给它,但我没有看到能够从文档中找到正确的API.
有没有人有他们可以分享的例子?
我有一个集群配置,在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) 我们目前正在ASP.NET MVC中开发一个Web应用程序,它可以从某种类型的IDE中获益,以帮助允许某些元素进行可视化定制.
有人可以推荐一种方法吗?我们想到的可能是使用Silverlight的插件.
有没有人有任何可能有帮助的链接或示例?
我要求将分组网格默认为折叠状态,除非它包含具有特定值的行(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) actor ×1
asp.net-mvc ×1
c# ×1
ide ×1
jquery ×1
kendo-grid ×1
kendo-ui ×1
silverlight ×1
wpf ×1