Sha256: d25f8d100b9d2d916819a10adc6a300c2496737159d23a962fa150d5df9d5a1e

Contents?: true

Size: 1.27 KB

Versions: 5

Compression:

Stored size: 1.27 KB

Contents

using Microsoft.Scripting.Utils;
using Microsoft.Scripting.Runtime;
using IronRuby.Runtime;
using IronRuby.Builtins;
using System;
using System.Runtime.InteropServices;
using rho.common;
using rho.net;

namespace rho.rubyext
{
    [RubyModule("Rho")]
    public static class RhoRoot
    {
        [RubyModule("AsyncHttp")]
        public static class RhoAsyncHttp
        {

            #region Private Implementation Details

            #endregion

            #region Private Instance & Singleton Methods

            [RubyMethodAttribute("cancel", RubyMethodAttributes.PublicSingleton)]
            public static void Cancel(RubyModule/*!*/ self, [NotNull]String cancelCallback)
            {
                if (CAsyncHttp.getInstance() != null)
                    CAsyncHttp.getInstance().cancelRequest(cancelCallback);
            }

            [RubyMethodAttribute("do_request", RubyMethodAttributes.PublicSingleton)]
            public static MutableString doRequest(RubyModule/*!*/ self, [NotNull]String command, Hash args)
            {
                CAsyncHttp.Create();
                RhoParams p = new RhoParams(args);
                return CAsyncHttp.getInstance().addHttpCommand(new CAsyncHttp.HttpCommand(command, p));
            }

            #endregion
        }
    }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rhodes-2.4.1 platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs
rhodes-2.4.1.beta.1 platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs
rhodes-2.4.0 platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs
rhodes-2.4.0.beta.2 platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs
rhodes-2.4.0.beta.1 platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs