CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Task
new AsyncNetTask(myContext, myHandler) {
 
    // 작업중에 필요한 변수가 있다면 finalize 하거나 이 객체의 생성자 인자로 넘길 수 있을 것입니다.
    // 유지해야 하는 변수라면 멤버 변수 등을 사용할 수도 있을 것입니다.
    Mydata mData;
 
    @Override
    protected TcpEnvelope onPreExecute() {
        return makeEnvelope();
    }
by arngard   November 17, 2011 @ 8:26pm
54 Views
no comments
 
'***********************************************************************************************************************--
'***********************************************************************************************************************--
'This is a Visual Basic Script that hits a WebURL
'The WebURL hit is the one provided as the parameter (in this case through the windows task scheduler)
'Instructions: Set this .vbs as the action for a schedule task and in the parameters section pass in the WebUrl u wish to hit
'***********************************************************************************************************************--
'***********************************************************************************************************************--
 
'Create variable to hold passing in arguments
args = WScript.Arguments.Count
by Egli   October 30, 2011 @ 6:01pm
66 Views
no comments
 
C#
public static class TaskCast
{
    public static explicit operator Task<T>(T sr);
    public static Task<T> operator +(T i1, T i2);
    public static Task<T> operator -(T i1, T i2);
    public static Task<T> operator *(T i1, T i2);
    public static Task<T> operator /(T i1, T i2);
    public static Task<T> operator %(T i1, T i2);
    public static Task<T> operator -(T i);
    public static Task<bool> operator ==(T i1, T i2);
by bnaya   March 23, 2011 @ 8:43am
Tags: Task, overload
92 Views
no comments
 
C#
static void Main(string[] args)
        {
            const int x = 6, y = 6;
            int[] m = {
                          1,  2,  3,  4,  5,  6,
                          20, 21, 22, 23, 24, 7,
                          19, 32, 33, 34, 25, 8,
                          18, 31, 36, 35, 26, 9,
                          17, 30, 29, 28, 27, 10,
                          16, 15, 14, 13, 12, 11
by Ihar Voitka   January 12, 2010 @ 2:15am
Tags: task, coding
126 Views
no comments
 
C#
#region Helpers
 
        static void LoopWork(Action work, int count)
        {
            if (count < 0) return;
            for (int i = 0; i < count; i++) work();
        }
 
        static void TimeWork(Action work, string workTitle)
        {
by Orktane   July 31, 2009 @ 12:27am
262 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate