36 references to WebHostUnsafeNativeMethods
SMSvcHost (36)
System\ServiceModel\Activation\ListenerAdapterBase.cs (36)
23
WebHostUnsafeNativeMethods
.WebhostListenerCallbacks listenerCallbacks;
29
static
WebHostUnsafeNativeMethods
.SafeFreeLibrary webHostIpm;
30
static
WebHostUnsafeNativeMethods
.WebhostGetVersion webhostGetVersion;
31
static
WebHostUnsafeNativeMethods
.WebhostRegisterProtocol webhostRegisterProtocol;
32
static
WebHostUnsafeNativeMethods
.WebhostOpenListenerChannelInstance webhostOpenListenerChannelInstance;
33
static
WebHostUnsafeNativeMethods
.WebhostCloseAllListenerChannelInstances webhostCloseAllListenerChannelInstances;
34
static
WebHostUnsafeNativeMethods
.WebhostUnregisterProtocol webhostUnregisterProtocol;
41
webHostIpm =
WebHostUnsafeNativeMethods
.LoadLibraryEx(SMSvcHost.ListenerAdapterNativeLibrary, IntPtr.Zero,
WebHostUnsafeNativeMethods
.LOAD_WITH_ALTERED_SEARCH_PATH);
47
webhostGetVersion = (
WebHostUnsafeNativeMethods
.WebhostGetVersion)GetProcDelegate<
WebHostUnsafeNativeMethods
.WebhostGetVersion>(webHostIpm, "WebhostGetVersion");
48
webhostRegisterProtocol = (
WebHostUnsafeNativeMethods
.WebhostRegisterProtocol)GetProcDelegate<
WebHostUnsafeNativeMethods
.WebhostRegisterProtocol>(webHostIpm, "WebhostRegisterProtocol");
49
webhostUnregisterProtocol = (
WebHostUnsafeNativeMethods
.WebhostUnregisterProtocol)GetProcDelegate<
WebHostUnsafeNativeMethods
.WebhostUnregisterProtocol>(webHostIpm, "WebhostUnregisterProtocol");
50
webhostOpenListenerChannelInstance = (
WebHostUnsafeNativeMethods
.WebhostOpenListenerChannelInstance)GetProcDelegate<
WebHostUnsafeNativeMethods
.WebhostOpenListenerChannelInstance>(webHostIpm, "WebhostOpenListenerChannelInstance");
51
webhostCloseAllListenerChannelInstances = (
WebHostUnsafeNativeMethods
.WebhostCloseAllListenerChannelInstances)GetProcDelegate<
WebHostUnsafeNativeMethods
.WebhostCloseAllListenerChannelInstances>(webHostIpm,
62
listenerCallbacks = new
WebHostUnsafeNativeMethods
.WebhostListenerCallbacks();
64
listenerCallbacks.webhostListenerConfigManagerConnected = new
WebHostUnsafeNativeMethods
.WebhostListenerConfigManagerConnected(onConfigManagerConnected);
65
listenerCallbacks.webhostListenerConfigManagerDisconnected = new
WebHostUnsafeNativeMethods
.WebhostListenerConfigManagerDisconnected(onConfigManagerDisconnected);
66
listenerCallbacks.webhostListenerConfigManagerInitializationCompleted = new
WebHostUnsafeNativeMethods
.WebhostListenerConfigManagerInitializationCompleted(onConfigManagerInitializationCompleted);
67
listenerCallbacks.webhostListenerApplicationPoolCreated = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationPoolCreated(onApplicationPoolCreated);
68
listenerCallbacks.webhostListenerApplicationPoolDeleted = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationPoolDeleted(onApplicationPoolDeleted);
69
listenerCallbacks.webhostListenerApplicationPoolIdentityChanged = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationPoolIdentityChanged(onApplicationPoolIdentityChanged);
70
listenerCallbacks.webhostListenerApplicationPoolStateChanged = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationPoolStateChanged(onApplicationPoolStateChanged);
71
listenerCallbacks.webhostListenerApplicationPoolCanOpenNewListenerChannelInstance = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationPoolCanOpenNewListenerChannelInstance(onApplicationPoolCanLaunchQueueInstance);
72
listenerCallbacks.webhostListenerApplicationPoolAllListenerChannelInstancesStopped = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationPoolAllListenerChannelInstancesStopped(onApplicationPoolAllQueueInstancesStopped);
73
listenerCallbacks.webhostListenerApplicationCreated = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationCreated(onApplicationCreated);
74
listenerCallbacks.webhostListenerApplicationDeleted = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationDeleted(onApplicationDeleted);
75
listenerCallbacks.webhostListenerApplicationBindingsChanged = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationBindingsChanged(onApplicationBindingsChanged);
76
listenerCallbacks.webhostListenerApplicationAppPoolChanged = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationAppPoolChanged(onApplicationAppPoolChanged);
77
listenerCallbacks.webhostListenerApplicationRequestsBlockedChanged = new
WebHostUnsafeNativeMethods
.WebhostListenerApplicationRequestsBlockedChanged(onApplicationRequestsBlockedChanged);
99
static Delegate GetProcDelegate<TDelegate>(
WebHostUnsafeNativeMethods
.SafeFreeLibrary library, string procName)
102
IntPtr funcPtr =
WebHostUnsafeNativeMethods
.GetProcAddress(library, procName);