public static ulong SetAcl(string url, string acl) { UrlAcl u = new UrlAcl(); u.Prefix = url; u.Acl = acl; ulong rc = HttpNative.SetAcl(IntPtr.Zero, Config.UrlAclInfo, u, UrlAcl.Length, IntPtr.Zero); return(rc); }
public static RequestQueue GetRequestQueue() { long handle; ulong rc = HttpNative.HttpCreateHttpHandle(out handle, IntPtr.Zero); if (rc == 0) { return(new RequestQueue(handle)); } return(null); }
public static ulong GetAcl(string url, out string acl) { acl = null; QueryUrlAcl q = new QueryUrlAcl(); q.Prefix = url; q.QueryDesc = QueryType.Exact; UrlAcl info = new UrlAcl(); long returnLength; ulong rc = HttpNative.GetAcl(IntPtr.Zero, Config.UrlAclInfo, q, QueryUrlAcl.Length, ref info, UrlAcl.Length, out returnLength, IntPtr.Zero); if (rc == 0) { acl = info.Acl; } return(rc); }
public static void Initialize() { HttpNative.Initialize(); }