/// <summary> /// <para> Adds a cookie to the specified cookie container that will be used with future requests.</para> /// </summary> public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { InteropHelp.TestIfAvailableClient(); using (var pchHost2 = new InteropHelp.UTF8StringHandle(pchHost)) using (var pchUrl2 = new InteropHelp.UTF8StringHandle(pchUrl)) using (var pchCookie2 = new InteropHelp.UTF8StringHandle(pchCookie)) { return(NativeMethods.ISteamHTTP_SetCookie(hCookieContainer, pchHost2, pchUrl2, pchCookie2)); } }
/// <summary> /// <para> Adds a cookie to the specified cookie container that will be used with future requests.</para> /// </summary> public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { InteropHelp.TestIfAvailableGameServer(); using (var pchHost2 = new InteropHelp.UTF8StringHandle(pchHost)) using (var pchUrl2 = new InteropHelp.UTF8StringHandle(pchUrl)) using (var pchCookie2 = new InteropHelp.UTF8StringHandle(pchCookie)) { return(NativeMethods.ISteamGameServerHTTP_SetCookie(CSteamGameServerAPIContext.GetSteamHTTP(), hCookieContainer, pchHost2, pchUrl2, pchCookie2)); } }
public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { bool flag; InteropHelp.TestIfAvailableGameServer(); using (InteropHelp.UTF8StringHandle handle = new InteropHelp.UTF8StringHandle(pchHost)) { using (InteropHelp.UTF8StringHandle handle2 = new InteropHelp.UTF8StringHandle(pchUrl)) { using (InteropHelp.UTF8StringHandle handle3 = new InteropHelp.UTF8StringHandle(pchCookie)) { flag = NativeMethods.ISteamGameServerHTTP_SetCookie(hCookieContainer, handle, handle2, handle3); } } } return(flag); }
public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { InteropHelp.TestIfAvailableClient(); bool result; using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchHost)) { using (InteropHelp.UTF8StringHandle utf8StringHandle2 = new InteropHelp.UTF8StringHandle(pchUrl)) { using (InteropHelp.UTF8StringHandle utf8StringHandle3 = new InteropHelp.UTF8StringHandle(pchCookie)) { result = NativeMethods.ISteamHTTP_SetCookie(hCookieContainer, utf8StringHandle, utf8StringHandle2, utf8StringHandle3); } } } return(result); }
private static extern bool _SetHTTPRequestCookieContainer(IntPtr self, HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer);
internal bool SetCookie(HTTPCookieContainerHandle hCookieContainer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchHost, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchUrl, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchCookie) { var returnValue = _SetCookie(Self, hCookieContainer, pchHost, pchUrl, pchCookie); return(returnValue); }
private static extern bool _SetCookie(IntPtr self, HTTPCookieContainerHandle hCookieContainer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchHost, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchUrl, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchCookie);
internal bool ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer) { var returnValue = _ReleaseCookieContainer(Self, hCookieContainer); return(returnValue); }
/// <summary> /// <para> Set the cookie container to use for a HTTP request</para> /// </summary> public static bool SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer) { InteropHelp.TestIfAvailableGameServer(); return(NativeMethods.ISteamHTTP_SetHTTPRequestCookieContainer(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, hCookieContainer)); }
/// Adds a cookie to the specified cookie container that will be used with future requests. public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { return(false); }
/// Release a cookie container you are finished using, freeing it's memory public static bool ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer) { return(false); }
public bool Equals(HTTPCookieContainerHandle other) => default; // 0x0000000180016320-0x0000000180016330 public int CompareTo(HTTPCookieContainerHandle other) => default; // 0x000000018002CB20-0x000000018002CB30
public static explicit operator uint(HTTPCookieContainerHandle that) => default; // 0x0000000180322710-0x00000001803232A0 public bool Equals(HTTPCookieContainerHandle other) => default; // 0x0000000180016320-0x0000000180016330
} // 0x00000001800163C0-0x00000001800163D0 static HTTPCookieContainerHandle() { Invalid = default; } // 0x00000001807CDAF0-0x00000001807CDB30
internal bool SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer) { var returnValue = _SetHTTPRequestCookieContainer(Self, hRequest, hCookieContainer); return(returnValue); }
/// Set the cookie container to use for a HTTP request public static bool SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer) { return(false); }
/// <summary> /// <para> Adds a cookie to the specified cookie container that will be used with future requests.</para> /// </summary> public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { InteropHelp.TestIfAvailableClient(); return(NativeMethods.ISteamHTTP_SetCookie(hCookieContainer, pchHost, pchUrl, pchCookie)); }
/// <summary> /// <para> Release a cookie container you are finished using, freeing it's memory</para> /// </summary> public static bool ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer) { InteropHelp.TestIfAvailableClient(); return(NativeMethods.ISteamHTTP_ReleaseCookieContainer(hCookieContainer)); }
private static extern bool _ReleaseCookieContainer(IntPtr self, HTTPCookieContainerHandle hCookieContainer);
/// <summary> /// <para> Set the cookie container to use for a HTTP request</para> /// </summary> public static bool SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer) { InteropHelp.TestIfAvailableClient(); return(NativeMethods.ISteamHTTP_SetHTTPRequestCookieContainer(hRequest, hCookieContainer)); }
/// <summary> /// <para> Release a cookie container you are finished using, freeing it's memory</para> /// </summary> public static bool ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer) { InteropHelp.TestIfAvailableGameServer(); return(NativeMethods.ISteamGameServerHTTP_ReleaseCookieContainer(CSteamGameServerAPIContext.GetSteamHTTP(), hCookieContainer)); }