private static extern int register_callbacks(IntPtr pInProcessApplication,
                                              PFN_REQUEST_HANDLER requestCallback,
                                              PFN_SHUTDOWN_HANDLER shutdownCallback,
                                              PFN_ASYNC_COMPLETION asyncCallback,
                                              IntPtr pvRequestContext,
                                              IntPtr pvShutdownContext,
                                              out bool resetStandardStreams);
Esempio n. 2
0
 private static extern int register_callbacks(IntPtr pInProcessApplication,
                                              PFN_REQUEST_HANDLER requestCallback,
                                              PFN_SHUTDOWN_HANDLER shutdownCallback,
                                              PFN_DISCONNECT_HANDLER disconnectCallback,
                                              PFN_ASYNC_COMPLETION asyncCallback,
                                              IntPtr pvRequestContext,
                                              IntPtr pvShutdownContext);
Esempio n. 3
0
 private static extern int register_callbacks(NativeSafeHandle pInProcessApplication,
                                              PFN_REQUEST_HANDLER requestCallback,
                                              PFN_SHUTDOWN_HANDLER shutdownCallback,
                                              PFN_DISCONNECT_HANDLER disconnectCallback,
                                              PFN_ASYNC_COMPLETION asyncCallback,
                                              PFN_REQUESTS_DRAINED_HANDLER requestsDrainedHandler,
                                              IntPtr pvRequestContext,
                                              IntPtr pvShutdownContext);
Esempio n. 4
0
 public static void HttpRegisterCallbacks(IntPtr pInProcessApplication,
                                          PFN_REQUEST_HANDLER requestCallback,
                                          PFN_SHUTDOWN_HANDLER shutdownCallback,
                                          PFN_ASYNC_COMPLETION asyncCallback,
                                          IntPtr pvRequestContext,
                                          IntPtr pvShutdownContext)
 {
     Validate(register_callbacks(pInProcessApplication, requestCallback, shutdownCallback, asyncCallback, pvRequestContext, pvShutdownContext));
 }
Esempio n. 5
0
 public static void HttpRegisterCallbacks(IntPtr pInProcessApplication,
                                          PFN_REQUEST_HANDLER requestCallback,
                                          PFN_SHUTDOWN_HANDLER shutdownCallback,
                                          PFN_DISCONNECT_HANDLER disconnectCallback,
                                          PFN_ASYNC_COMPLETION asyncCallback,
                                          PFN_REQUESTS_DRAINED_HANDLER requestsDrainedHandler,
                                          IntPtr pvRequestContext,
                                          IntPtr pvShutdownContext)
 {
     Validate(register_callbacks(pInProcessApplication, requestCallback, shutdownCallback, disconnectCallback, asyncCallback, requestsDrainedHandler, pvRequestContext, pvShutdownContext));
 }
Esempio n. 6
0
 private static extern void register_callbacks(PFN_REQUEST_HANDLER request_callback, PFN_SHUTDOWN_HANDLER shutdown_callback, PFN_ASYNC_COMPLETION managed_context_handler, IntPtr pvRequestContext, IntPtr pvShutdownContext);
Esempio n. 7
0
 public static void HttpRegisterCallbacks(PFN_REQUEST_HANDLER request_callback, PFN_SHUTDOWN_HANDLER shutdown_callback, PFN_ASYNC_COMPLETION managed_context_handler, IntPtr pvRequestContext, IntPtr pvShutdownContext)
 {
     register_callbacks(request_callback, shutdown_callback, managed_context_handler, pvRequestContext, pvShutdownContext);
 }
Esempio n. 8
0
 public unsafe static extern int http_read_request_bytes(IntPtr pHttpContext, byte *pvBuffer, int cbBuffer, PFN_ASYNC_COMPLETION pfnCompletionCallback, IntPtr pvCompletionContext, out int dwBytesReceived, out bool fCompletionExpected);
Esempio n. 9
0
 public unsafe static extern int http_flush_response_bytes(IntPtr pHttpContext, PFN_ASYNC_COMPLETION pfnCompletionCallback, IntPtr pvCompletionContext, out bool fCompletionExpected);
Esempio n. 10
0
 internal unsafe static extern int http_write_response_bytes(IntPtr pHttpContext, HttpApiTypes.HTTP_DATA_CHUNK *pDataChunks, int nChunks, PFN_ASYNC_COMPLETION pfnCompletionCallback, IntPtr pvCompletionContext, out bool fCompletionExpected);