示例#1
0
    private void UpgradeSync(string name, string path, Func <dynamic, object> value)
    {
        switch (_httpMethod)
        {
        case HttpMethod.Get:
            _module.Get(path, value, null, name);
            break;

        case HttpMethod.Put:
            _module.Put(path, value, null, name);
            break;

        case HttpMethod.Post:
            _module.Post(path, value, null, name);
            break;

        case HttpMethod.Delete:
            _module.Delete(path, value, null, name);
            break;

        case HttpMethod.Head:
            _module.Head(path, value, null, name);
            break;

        case HttpMethod.Patch:
            _module.Patch(path, value, null, name);
            break;

        case HttpMethod.Options:
            _module.Options(path, value, null, name);
            break;
        }
    }