当我尝试运行 Powershell 脚本来交换 preprod 和 prod 插槽时,我的四个 Azure Web 应用程序中的两个不断收到此错误。
该命令Start-AzureWebsite -Name $WebSiteName -Slot $SourceSlotName会导致以下错误:
Conflict: Cannot modify this site because another operation is in progress. Details: Id: b98d4832-5f6b-4bad-9c4e-470a2d0d100c, OperationName:
SwapSiteSlots, CreatedTime: 2/1/2016 9:30:54 PM, WebSystemName: websites, SubscriptionName: bd3570da-d430-485a-a83c-d4ef448b865e, WebspaceName: *******EastUSwebspace,
SiteName: *******, SlotName: preprod, ServerFarmName:
At C:\dev\...\scripts\Swap-AzureWebApp.ps1:18 char:1
+ Start-AzureWebsite -Name $WebSiteName -Slot $SourceSlotName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Start-AzureWebsite], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.StartAzureWebsiteCommand
没有正在进行任何操作,但我在大约 30 分钟前将 Git 推送到了我的 preprod 槽...
它看起来像这个问题,但它来自 …
使用 .NET Core 和 Json.NET,我如何序列化一个DateTimeOffset(not DateTime) 以便 UTC+00:00成为Z同时保持任何其他时区偏移(-04:00例如)?
这SO职位是DateTime的,但有了它,我设法取代+00:00的Z,而转换所有时区为UTC
new JsonSerializerSettings {
Converters = new JsonConverter[] {
new IsoDateTimeConverter {
DateTimeStyles = DateTimeStyles.AdjustToUniversal,
DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'",
}
}
};
Run Code Online (Sandbox Code Playgroud)
我想保留时区偏移信息,即
2019-12-10T17:00:00Z 为了 new DateTimeOffset(2019, 12, 10, 17, 0, 0, TimeSpan.Zero)
和
2019-12-10T13:00:00-04:00 为了 new DateTimeOffset(2019, 12, 10, 13, 0, 0, TimeSpan.FromHours(-4))
该DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ssK"建议的作品DateTime,但产出+00:00,不Z …
在NAnt 0.92中,我定义了一个属性,并在检查它之后立即存在.它不存在......但它存在于被调用的目标中.这是一个错误还是一个功能?!?我在文档中搜索但找不到它.
<target name="test">
<property name="testprop" value="test value" />
<echo message="property value = ${testprop}" />
<if test="${property::exists(testprop)}">
<echo message="property exists, as it should!" />
</if>
<if test="${not property::exists(testprop)}">
<echo message="property doesn't exists... WTF?" />
</if>
<call target="test2" />
</target>
<target name="test2">
<echo message="property value in sub-target = ${testprop}" />
</target>
Run Code Online (Sandbox Code Playgroud)
输出:
测试:
[echo] property value = test value
[echo] property doesn't exists... WTF?
Run Code Online (Sandbox Code Playgroud)
测试2:
[echo] property value in sub-target = test value
Run Code Online (Sandbox Code Playgroud) 我的问题与这个问题非常相似(没有真正回答):Nhibernate:二级收集中的明显结果
我有这个对象模型:
class EntityA
{
...
IList<EntityB> BList { get; protected set; }
...
}
class EntityB
{
... does NOT reference its parent EntityA...
IList<EntityC> CList { get; protected set; }
}
Run Code Online (Sandbox Code Playgroud)
他们是一对多的关系.EntityB和C 没有对其父对象的对象引用.
我想通过执行类似以下三个SQL查询的内容来完全加载集合,以避免笛卡尔连接:
SELECT id, ... FROM EntityA;
SELECT id, idA, ... FROM EntityB;
SELECT id, idB, ... FROM EntityC;
Run Code Online (Sandbox Code Playgroud)
有了它,DAL具有正确填充对象的所有信息.但是由于EntityB不知道它的父亲是谁,所以必须是nHibernate负责正确填充集合.
可以吗?
我可以使用笛卡尔积进行此解决方法,但它需要修改我的模型以提供集合设置器,并且在我的脑海中符合DAL技术问题的补丁.
ICriteria criteria = session.CreateCriteria<EntityA>()
.SetFetchMode("BList", FetchMode.Join)
.SetFetchMode("BList.CList", FetchMode.Join)
.SetResultTransformer(new DistinctRootEntityResultTransformer());
IList<EntityA> listA = criteria.List<EntityA>();
foreach (EntityA objA in …Run Code Online (Sandbox Code Playgroud) Copy Artifacts插件上是否有任何文档/示例,即"由构建参数指定"选项?
我正在尝试做一个"加入钻石"管道,例如在这个SO问题中,并且无法弄清楚Parameter Name在"从另一个项目复制工件"构建步骤的选项中放置什么来正确复制我的工件.

我的所有作业都有一个PL_BUILD_NUMBER参数,我想用它来选择复制工件的构建.
这个邮件列表帖子说参数必须是XML.所以我尝试了这个:
BUILD_SELECTOR=<SpecificBuildSelector><buildNumber>$PL_BUILD_NUMBER</buildNumber></SpecificBuildSelector>
Run Code Online (Sandbox Code Playgroud)
但它不起作用.我在日志中得到此异常:
java.lang.NullPointerException
at java.io.StringReader.<init>(Unknown Source)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1035)
at hudson.plugins.copyartifact.BuildSelectorParameter.getSelectorFromXml(BuildSelectorParameter.java:80)
at hudson.plugins.copyartifact.ParameterizedBuildSelector.getBuild(ParameterizedBuildSelector.java:52)
at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:280)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
at hudson.model.Run.execute(Run.java:1740)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:233)
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
还有"这个构建参数化 - >复制工件的构建选择器",我不知道是否应该使用它...
谢谢!
(我在这里转载我的问题:https : //plnkr.co/QvEWjhJhbsghy1OD)
<ng-select>选项的下拉列表未显示在该<ngx-datatable>行的上方,似乎已被单元格的高度削减,使其变得毫无用处。
常规<select>效果很好,但我可以看到所有选项。
如何使ng-select正常工作?