记录生活
分类 Category : .NET

Ninject使用简单介绍

<Category: .NET> 发表评论

Ninject是一个轻量级的IOC框架,它的Kernel、Module的方式比较特别,个人比较喜欢这种方式,Github地址:https://github.com//ninject,上面还有很多插件,如ninject.extensions.xml
下面简单说一下如何在Ninject下结合xml配置来实现动态注入:
阅读这篇文章的其余部分 »

本文来自: Ninject使用简单介绍

ElasticSearch WebConsole及ElasticSearch.NET客户端

<Category: .NET, Lucene, 搜索> 发表评论

用Fiddler来查看ElasticSearch的服务器状态太让人抓狂了,抽空弄个console面板,可以很方便的设置服务器地址和更新时间,暂时只显示了一部分有用的信息。

screenshot

github的地址:http://github.com/medcl/ElasticSearch-WebConsole

封装的一个.NET客户端地址,提供了连接池和thrift支持(暂时不支持Framed模式)200w记录时索引操作1-2ms、800w记录50ms,github地址:

http://github.com/medcl/ElasticSearch.Net

本文来自: ElasticSearch WebConsole及ElasticSearch.NET客户端

RESTful.NET

<Category: .NET, 架构> 发表评论
Restful

View more presentations from medcl.

相关源文件:RESTful

本文来自: RESTful.NET

小议 MySpace DataRelay

<Category: .NET, 分布式, 架构, 资源分享> 发表评论

最近看MySpace的DataRelay代码,有点抓狂(无文档、注释极少、缺少用例),DataRelay是MySpace开源的一个中间层框架,核心是一个支持插件的消息系统,内部使用了微软的CCR(Concurrency and Coordination Runtime,a component originally released as part of the Microsoft Robotic Studio)来作为消息的分发,包括3个核心组件:

  • Forwarder - This handles the actual moving of messages, both from client to server and between servers ,实现消息的不同服务器节点以及客户端之间的数据分发传递.
  • - This handles storing data, and is the component used for basic key/value caching,Oracle的KeyValue数据库,查询效率高,数据能够持久化到硬盘,支持多个节点来实现分布式缓存.
  • Index Cache - This is a two tiered indexed data system, for more advanced queries than simple key/value,通过创建索引数据并存储到BerkeleyDB,并通过Component在服务端进行计算筛选,来实现复杂的数据查询.

MySpace作为.NET架构最为成功的案例之一,确实有其过人之处,DataRelay提供了高性能的缓存系统和消息处理机制,并支持自定义计算Component组件,各组件支持Cluster,有完整的Replication和负载均衡机制,组件都是以windows服务的形式,可以非常灵活的进行部署,客户端与服务端使用Socket进行通讯,另外通过自定义组件可以提供更多的扩展,譬如缓存部分可以使用Memcached组件来替换等。

MySpace虽然开源出来了这套东西,但是好像不怎么上心,CodePlex上面连个像样文档都没有,扔上去的代码连测试用例都没有一个,想要用这套东西还真只能全凭看代码了。

CodePlex代码下载地址:http://datarelay.codeplex.com/SourceControl/list/changesets#

MIX 10上的演讲:Robots at MySpace: Massive Scaling a .NET Website with the Microsoft Robotic Studio (有CCR相关的介绍)  PPT下载

CCR at MySpacehttp://channel9.msdn.com/shows/Communicating/CCR-at-MySpace/

本文来自: 小议 MySpace DataRelay

.net api文档生成工具,Sandcastle

<Category: .NET, 资源分享> 发表评论

sandcastlelogo_jpg

, created by Microsoft, is a tool used for creating MSDN-style documentation from assemblies and their associated XML comments files. The current version is the May 2008 release. It is command line based and has no GUI front-end, project management features, or an automated process like those that you can find in NDoc. The Sandcastle Help File Builder was created to fill in the gaps, provide the missing NDoc-like features that are used most often, and provide graphical and command line based tools to build a help file in an automated fashion.

Base: http://sandcastle.codeplex.com/
GUI: http://shfb.codeplex.com/

第一步,设置
build define
第二步,我build
build output
第三步,查看结果了
build result1
build result

本文来自: .net api文档生成工具,Sandcastle

Eazfuscator.NET

<Category: .NET> 4 条评论

Eazfuscator.NET是一个免费的NET混淆工具。

is a free obfuscator for .NET platform. The main purpose of obfuscator is to protect intellectual property of the software

Screenshot of the main usage idea 
最新版:Version 2.8 released on April 13, 2010
Download setup

本文来自: Eazfuscator.NET

sqlserver2008安装报错 “Previous releases of Microsoft Visual Studio 2008″ failed.

<Category: .NET, SQL Server> 发表评论

“Previous releases of Microsoft Visual Studio 2008″ failed.

问题原因,vs2008未安装sp1

解决办法:

1.去掉下面3个安装组件

  • Management Tools
  • Integration Services
  • Business Intelligence Development Studio
  • 2.转到安装目录,执行:

    Setup /ACTION=install /SkipRules=VSShellInstalledRule RebootRequiredCheck

     

     

    本文来自: sqlserver2008安装报错 “Previous releases of Microsoft Visual Studio 2008″ failed.

    redgate的{smartassembly}

    <Category: .NET> 发表评论

    据说: 提供了一种用于优化你的 汇编程序,保护你的作品和软件,最小化发布程序尺寸,增强性能以及添加强大的发布配置调试能力的独特的解决方案。 可以让你高效地立刻提交一个你的没有异常状况的 .NET 应用软件的精巧版本。

    主要特性:优化代码,合并依赖程序集,,字符编码,压缩等

    阅读这篇文章的其余部分 »

    本文来自: redgate的{smartassembly}

    errorMSB3323: Unable to find manifest signing certificate in the certificate store.

    <Category: .NET> 发表评论

    CCNET build报的错

    D:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets (1783,7): errorMSB3323: Unable to find manifest signing certificate in the certificate store.

    解决办法,如下,工程属性,singing选项卡,去掉ClickOne的钩即可。

    temp

    本文来自: errorMSB3323: Unable to find manifest signing certificate in the certificate store.

    WCF实例上下文模式与并发模式对性能的影响

    <Category: .NET> 发表评论

    实例上下文模式

    InstanceContextMode 控制在响应客户端调用时,如何分配服务实例。InstanceContextMode 可以设置为以下值:

    •Single - 为所有客户端调用分配一个服务实例。

    •PerCall – 为每个客户端调用分配一个服务实例。

    •PerSession – 为每个客户端会话分配一个服务实例。

    InstanceContextMode 的默认设置为 PerSession

    并发模式
    ConcurrencyMode 控制一次允许多少个线程进入服务。ConcurrencyMode 可以设置为以下值之一:

    •Single - 一次可以有一个线程进入服务。

    •Reentrant - 一次可以有一个线程进入服务,但允许回调。

    •Multiple - 一次可以有多个线程进入服务。

    ConcurrencyMode 的默认设置为 Single。

    阅读这篇文章的其余部分 »

    本文来自: WCF实例上下文模式与并发模式对性能的影响