Thread.QueueUserWorkItem - use to run methods in background threads simultaneously
Monitor - lock only reference type
Interlock - lock only value type
ReadWriteLock
Mutex
Saturday, November 12, 2011
Wednesday, November 9, 2011
Monday, November 7, 2011
load Assembly
System.AppDomain
- Load
System.Reflection.Assembly
- Load - load assemblies in default load context that containes of assemblies found by probing:
- the GAC
- the host assembly store
if the runtime is hosted (for example, in SQL Server) - the ApplicationBase and PrivateBinPath of the application domain.
- LoadFrom - load assemblies in load-from context that contains assemblies that are loaded from locations that are not searched by the loader
- ReflectionOnlyLoad - load assemblies in reflection-only context. Code in this context cannot be executed
Saturday, October 22, 2011
Service unstallation utils
util name | purpose |
---|---|
Installutil.exe | allows you to install and uninstall windows service |
Regsvcs.exe | allows you to install enterprice service |
I __
n |
s |ServiceProcessInstaller - to config and install group of services
t |
a |ServiceInstaller - to config and instal one service
l |
l --
C _
o |
n | ServiceController - to manipulate already installed service
f |
i |
g --
Compression
System.IO.Compression
compression | data | algorithm | filesize | cyclic redundancycheck value fordetecting data corruption |
---|---|---|---|---|
GZipStream | gzip | Deflate||LZ77+Huffman coding | less then 4Gb | + |
DeflateStream | Deflate||LZ77+Huffman coding | less then 4Gb | - |
Subscribe to:
Posts (Atom)