我已经在 83 版上更新了 Chrome,但我的一些使用“Ajax 上传”组件(更多信息见下文)的表单无法正常工作。我已阅读新版本 ( https://developers.google.com/web/updates/2020/05/nic83 )的问题,但找不到与表单、iframe、文件、ajax 或帖子相关的任何内容。
我会尝试在 fiddler 上发布一个示例,但我想知道是否有人对此有所了解。
换句话说,在其他表单上,我有一个多文件拖放上传器 (dropzone.js),它工作正常,但转换起来并不容易,我需要一个快速的解决方案。
一个虚拟样本(我没有任何沙箱来测试上传):https : //jsfiddle.net/drvespa/7ue8k94r/3/
我将图书馆发布在https://filebin.net/8sgsmq7sh14m0qen 上:
/**
* Ajax upload
* Project page - http://valums.com/ajax-upload/
* Copyright (c) 2008 Andris Valums, http://valums.com
* Licensed under the MIT license (http://valums.com/mit-license/)
* Version 3.6 (26.06.2009)
*/
Run Code Online (Sandbox Code Playgroud) 我使用默认的Visual Studio 2015模板和Google身份验证开发了ASPNET MVC 5应用程序.一切都在开发环境中正常工作,但实际上外部认证后的调用AuthenticationManager.GetExternalLoginInfoAsync()有时会返回null.
通常它在当天的中央时间(从08:00到20:00)返回null,但我没有找到模式,因为有时候工作.我看过开发者控制台,但是没有很多请求(过去12小时内有22个)并且都是成功的.
我尝试过其他StackOverflow线程的一些解决方案,但它们不起作用.此外,我只能在晚上尝试它们,因为这是一个个人项目,然后连接成功,我无法重现这个问题.
代码是标准的:
在启动时
public void ConfigureAuth(IAppBuilder app)
{
// Configure the db context, user manager and signin manager to use a single instance per request
app.CreatePerOwinContext(ApplicationDbContext.Create);
app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create);
app.CreatePerOwinContext<ApplicationSignInManager>(ApplicationSignInManager.Create);
// Enable the application to use a cookie to store information for the signed in user
// and to use a cookie to temporarily store information about a user logging in with a third party login provider
// Configure the sign in cookie
app.UseCookieAuthentication(new …Run Code Online (Sandbox Code Playgroud)在最近的Windows 10 Update(Fall Creators Update)之后,.NET c#4.0应用程序的性能下降了很多.我认为存在各种问题,其中之一是log4net(或磁盘IO).
我们的应用程序非常复杂(各种WCF应用程序和ASPNET MVC 3.0应用程序),并且在开发中有很多log4net跟踪.在启动时加载第一页持续4或5分钟,在更新持续一分钟之前,如果我停用log4net的性能.
我已经使用两个克隆的虚拟机进行了测试,在正则表达式操作后进行记录,并且差异很大.
代码:
static void Main(string[] args)
{
Log.Info("Log4net1");
DateTime start = DateTime.Now;
for (int i = 0; i < 50; i++)
{
DoTheThing();
}
TimeSpan elapsedTime = DateTime.Now - start;
Log.DebugFormat("TOTAL Elapsed time: {0}", elapsedTime.TotalMilliseconds);
Console.ReadKey();
}
private static void DoTheThing()
{
DateTime start = DateTime.Now;
Regex.Replace(TEXT, " nec ", m =>
{
return " (word nec) ";
});
TimeSpan elapsedTime = DateTime.Now - start;
Log.DebugFormat("Elapsed time: {0}", elapsedTime.TotalMilliseconds);
}
Run Code Online (Sandbox Code Playgroud)
我已经使用log4net …
我正在使用 CodeMirror 来检查是否可以在我们的网站中使用它来允许用户编写 C# 脚本。我可以轻松制作一个示例,但我找不到任何有关获取编辑器的文本值以通过表单发送的文档。
JS 来源:
import {StreamLanguage} from "@codemirror/language"
import {csharp} from "@codemirror/legacy-modes/mode/clike"
import {EditorView, basicSetup} from "codemirror"
let editor = new EditorView({
extensions: [basicSetup, StreamLanguage.define(csharp)],
parent: document.getElementById('_formengine_script')
})
Run Code Online (Sandbox Code Playgroud)
索引.html:
<!doctype html>
<meta charset=utf8>
<h1>CodeMirror!</h1>
<div id="_formengine_script"></div>
<script src="editor.bundle.js"></script>
Run Code Online (Sandbox Code Playgroud)
我认为一定有多种方法可以解决这个问题,但我一个都不能。我找到了很多关于 CodeVersion 5 的信息,但我更愿意使用最新版本。
我正在使用Autofac提供一些WCF服务,并按照教程正常工作!但是现在,我需要发送> 65Kb的请求,所以我必须更改服务器上的绑定以允许这个请求,我找不到怎么做!
我如何拦截服务的注入,以便分配一个动态创建或在.config中定义的绑定?在客户端我做得很好,工作正常!
提前致谢,
渣.
我可以为特定文化更改DateTime的标准输出格式.例:
class Program
{
static void Main(string[] args)
{
PrintCultureDateTime("ca-ES");
PrintCultureDateTime("es-ES");
PrintCultureDateTime("en-US");
PrintCultureDateTime("en-GB");
PrintCultureDateTime("pt-PT");
}
public static void PrintCultureDateTime(string culture)
{
string result = new DateTime(2017, 10, 1).ToString("d",
CultureInfo.GetCultureInfo(culture));
Console.WriteLine(string.Format("{0}: {1}", culture, result));
}
}
Run Code Online (Sandbox Code Playgroud)
输出:
ca-ES: 1/10/2017
es-ES: 01/10/2017
en-US: 10/1/2017
en-GB: 01/10/2017
pt-PT: 01/10/2017
Run Code Online (Sandbox Code Playgroud)
我想要的是使用标准"d"格式或其他标准格式的日期和月份两位数字,以便修复DateTime字符串的大小.像那样的输出:
ca-ES: 01/10/2017
es-ES: 01/10/2017
en-US: 10/01/2017
en-GB: 01/10/2017
pt-PT: 01/10/2017
Run Code Online (Sandbox Code Playgroud) c# ×2
javascript ×2
ajax ×1
asp.net-mvc ×1
autofac ×1
binding ×1
codemirror-6 ×1
culture ×1
datetime ×1
integration ×1
log4net ×1
owin ×1
performance ×1
wcf ×1
windows-10 ×1