Esempio n. 1
0
        private static void mk_http_access(IntPtr mk_parser, string path, int is_dir, IntPtr mk_http_access_path_invoker, IntPtr mk_sock_info)
        {
            if (OnHttpAccess == null)
            {
                return;
            }
            var result = OnHttpAccess.Invoke(new HttpAccess(mk_parser, mk_sock_info, is_dir == 1 ? true : false, path));

            if (result == null)
            {
                return;
            }
            PInvoke.ZLMediaKitMethod.mk_http_access_path_invoker_do(mk_http_access_path_invoker, result.Message, result.AccessPath, result.CookieLifeSecond);
        }
 internal static HttpAccessResult OnHttpAccess_Call(HttpAccess httpAccess) => OnHttpAccess?.Invoke(httpAccess);