上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 1>静态插件在启动的时候加入。1.0>原始的方法 #region 加载视图 //加载视图的这句我没有用到。因为我现在关注的是api.mvc模式的api. var assemblyView = Assembly.LoadFile(AppDomain.CurrentDomain.BaseDirector 阅读全文
posted @ 2022-07-31 23:15 forhells 阅读(161) 评论(0) 推荐(0)
摘要: winform下面使用了 AppDomain.CurrentDomain.BaseDirectory这个路径,但是如果winform以管理员身份运行之后。它指向的位置就是系统盘了。 C:\Users\%SystemUser%\AppData\Local\Temp\ 大约是这样。 如果还要找到当前运行 阅读全文
posted @ 2022-07-16 15:51 forhells 阅读(36) 评论(0) 推荐(0)
摘要: using (var aes = new RijndaelManaged()) { aes.BlockSize = 128; aes.Key = _keyByte; aes.Mode = CipherMode.ECB; aes.Padding = PaddingMode.PKCS7; var cry 阅读全文
posted @ 2022-06-27 23:01 forhells 阅读(174) 评论(0) 推荐(0)
摘要: 把字符存到后台。在代码中加载的时候,转义丢失了。字符不显示了。 int fontid= Convert.ToInt32(item.menuicon.Replace("\\x", "").Replace("\\n",""), 16); span.Text = $"{char.ConvertFromUt 阅读全文
posted @ 2022-06-17 16:49 forhells 阅读(42) 评论(0) 推荐(0)
摘要: xaml代码: <Label Grid.Column="0" HorizontalTextAlignment="Center"> <Label.FormattedText> <FormattedString> <Span FontFamily="{DynamicResource FontAwesom 阅读全文
posted @ 2022-06-10 10:52 forhells 阅读(55) 评论(0) 推荐(0)
摘要: 在服务端刷新token,放到响应header里面,前端死活得不到值。最后发现因为用的是自定义newtoken,前端在跨域中读不到。 加入扩展头跨域,解决问题。 两个问题 1>服务器自动刷新token public class FlushTokenMiddleware { private readon 阅读全文
posted @ 2022-04-24 16:21 forhells 阅读(248) 评论(0) 推荐(0)
摘要: upload组件,上传图片。花了1小时写完接口和页面。4个小时来调试。有以下问题。 1>上传多张图片,出现,文件被另一个进程处理中。最后发现。用了for来调上传,但是成功是放在回调里面的。也就是同时调了多次请求,导致。文件产生一样的编号被锁。 2>附加参数用form["参数名"]即可读取。 3>压缩 阅读全文
posted @ 2022-03-20 18:15 forhells 阅读(118) 评论(0) 推荐(0)
摘要: freesql unitofwork模式使用 它的例子。 using (var uow = fsql.CreateUnitOfWork()) { var songRepo = fsql.GetRepository<Song>(); songRepo.UnitOfWork = uow; var use 阅读全文
posted @ 2022-02-08 09:05 forhells 阅读(77) 评论(0) 推荐(0)
摘要: 1>vue双向绑定。数字类型居然为字符串? 双向绑定之后。数字变成了字符串。原来是因为没有写 v-model.number=的这种绑定。见https://cn.vuejs.org/v2/guide/forms.html, 后面的内容会有问题。就会加。 阅读全文
posted @ 2022-01-27 14:45 forhells 阅读(27) 评论(0) 推荐(0)
摘要: 一直自己想实现一个定时调度器。看到很多人推荐了时间轮,也想了下用 thread下面的timer。每秒一次一次的去查找任务。并开始线程来调用。 我对几个开源的任务调度的组件比较有兴趣。前面用过了FluentScheduler,觉得这个比较简单,就打开它的代码看看。 它用的是一个timer来调度任务的。 阅读全文
posted @ 2021-11-04 11:42 forhells 阅读(62) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页