随笔分类 - 内参
摘要:alter procedure [zsp_backup_HourlyJob] @dbName sysname = null , @BackupRootPath varchar(256) , @oddWeekPath varchar(256) = 'OddWeek' , @evenWeekPath varchar(256) = 'EvenWeek' --严禁手动执行asbegin --zsp_backup_HourlyJob 'TEST', 'd:\dbbackup' declare @now datetime set @now =
阅读全文
摘要:/*makecert.exe -n "CN=Microshaoft X509 Test - A" -sky exchange -pe -sv a.pvk a.cerpvk2pfx.exe -pvk a.pvk -spc a.cer -pfx a.pfx -f -po 123makecert.exe -n "CN=Microshaoft X509 Test - B" -sky exchange -pe -sv b.pvk b.cerpvk2pfx.exe -pvk b.pvk -spc b.cer -pfx b.pfx -f -po abc*/namesp
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title> new document </title> <meta name="generator" con
阅读全文
摘要:drop table dbo.num_tbdrop table dbo.tbcreate table num_tb(d datetime, id int)insert num_tbselect '2004-01-01', 1CREATE TABLE [tb]( [AutoID] [bigint] IDENTITY(1,1) NOT NULL, [id] [varchar](20) NULL, [n...
阅读全文
摘要:// /r:"C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy\Microsoft.Data.Schema.ScriptDom.dll";"C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy\Microsoft.Data.Schem...
阅读全文
摘要:namespace Microshaoft{ using System; using System.Threading; public class WakeProcessor<TData> { private delegate void ProcessCaller(AutoResetEvent wait, TData data); public delegate void WaitEv...
阅读全文
摘要:#define cs4 //C# 4.0+//#define cs2 //C# 2.0+// /r:C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Runtime.Caching.dllnamespace Test{ using System;#if cs4 using System.Runtime.Caching;#endif using...
阅读全文
摘要:namespace Test{ using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using Test.Share; using Microshaoft; public class Class1 { static void Main(string[]...
阅读全文
摘要:<%@ WebHandler Language="C#" Class="Microshaoft.AsyncProcessHandler" %>//=================================================#define c4 //C# 4.0+//#define c2namespace Microshaof...
阅读全文
摘要://AsyncQueue.cs#define c4 //C# 4.0+//#define c2namespace Microshaoft{ using System; using System.Threading; using System.Diagnostics; using System.Collections.Generic;#if c4 using System.Collections.C...
阅读全文
摘要:// Server.csnamespace WCF.Services{ using System; using System.ServiceModel; using Contracts.Operations; // Service class which implements the service contract. // Added code to write output to the co...
阅读全文
摘要:// WCF.MSMQ.Message.Sender.(WCF.to.MSMQ).csnamespace WCF.MSMQ.MessageSender.Host{ using System; using System.Transactions; using System.ServiceModel.MsmqIntegration; using System.ServiceModel; using C...
阅读全文
摘要:namespace Test{ using System; using System.Net; using System.Net.Sockets; using System.Text; using Microshaoft; public class AsyncSocketAsyncQueueHandlerProxyServer { public static int Main(String[] a...
阅读全文
摘要:namespace Test{ using System; using System.Net; using System.Net.Sockets; using System.Text; using System.IO; using System.Threading; using Microshaoft; public class AsyncSocketAsyncDataQueueHandlerEc...
阅读全文
摘要:<%@ Page language="C#" validaterequest="false" enableviewstate="false"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www...
阅读全文
摘要:/*Remoting 异步队列实现,流程如下1.并发若干客户端程序通过调用 Remoting CocurrentQueue Server 提供的公开远程方法 Enqueue 将数据元素入队尾2.Remoting CocurrentQueue Server 发现队列不为空,则并发若干线程陆续 Dequeue 队首数据元素并处理注意:1.队列的数据元素定义需自行实现2.对出列数据元素的处理程序需自行实...
阅读全文
摘要:/*csc /t:library Share.cs*/namespace Microshaoft{ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using...
阅读全文
摘要:/*csc /t:library Share.cs*/namespace Microshaoft{ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using...
阅读全文
摘要:/* C# 委托的发展史: .Net 1.x 委托 =>.Net 2.x 匿名方法 => .Net 3.0/3.5 Lambda 表达式 ms-help://MS.MSDNQTR.v90.chs/dv_csref/html/6ce3f04d-0c71-4728-9127-634c7e9a8365.htm 在 C# 1.0 中,您通过使用在代码中其他位置定义的方法显式初始化委托来创建委托...
阅读全文
摘要:namespace Test{ using System; using System.Net; using System.Net.Sockets; using System.Text; using Microshaoft; public class AsyncSocketAsyncQueueHandlerProxyServer { public static int Main(String[] a...
阅读全文

浙公网安备 33010602011771号