Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / SMSvcHost / System / ServiceModel / Activation / NamedPipeActivation.cs / 1 / NamedPipeActivation.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System; using System.ServiceModel.Channels; using System.Diagnostics; using System.ServiceModel.Activation.Diagnostics; using System.ServiceModel.Diagnostics; class NamedPipeActivation : ActivationService { NamedPipeSharing serviceCore; internal NamedPipeActivation() : base(ListenerConstants.NamedPipeActivationServiceName, Uri.UriSchemeNetPipe) { serviceCore = new NamedPipeSharing(); } protected override void OnContinue() { base.OnContinue(); serviceCore.OnContinue(); } #if DEBUG protected override void OnCustomCommand(int command) { serviceCore.OnCustomCommand(command); } #endif protected override void OnPause() { base.OnPause(); serviceCore.OnPause(); } protected override void OnShutdown() { base.OnShutdown(); base.RequestAdditionalTime(ListenerConstants.ServiceStopTimeout); serviceCore.OnShutdown(); } protected override void OnStart(string[] args) { try { ListenerConfig.EnsureInitializedForNetPipe(); base.OnStart(args); // we don't support delay starting the sharing piece for named pipes serviceCore.Start(); } catch (Exception exception) { // Log the error to eventlog. ListenerTraceUtility.EventLog.LogEvent(TraceEventType.Error, EventLogCategory.ListenerAdapter, EventLogEventId.ServiceStartFailed, false, exception.ToString()); throw; } } protected override void OnStop() { base.OnStop(); base.RequestAdditionalTime(ListenerConstants.ServiceStopTimeout); serviceCore.OnStop(); } class NamedPipeSharing : SharingService { internal NamedPipeSharing() : base(TransportType.NamedPipe, ListenerConstants.NamedPipeActivationServiceName, ListenerConstants.NamedPipeSharedMemoryName) { } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SpecularMaterial.cs
- MulticastDelegate.cs
- TemplateBamlTreeBuilder.cs
- DetailsViewCommandEventArgs.cs
- ComboBoxAutomationPeer.cs
- LicFileLicenseProvider.cs
- XPathNodeInfoAtom.cs
- ReverseQueryOperator.cs
- HttpVersion.cs
- PropertyFilterAttribute.cs
- RangeBase.cs
- FilteredXmlReader.cs
- BamlBinaryWriter.cs
- ValueConversionAttribute.cs
- ProtocolState.cs
- DescriptionCreator.cs
- DataServices.cs
- XPathException.cs
- ErrorFormatterPage.cs
- InvalidBodyAccessException.cs
- ExtractedStateEntry.cs
- DataGridViewRowsRemovedEventArgs.cs
- followingquery.cs
- SynchronizingStream.cs
- Soap.cs
- PasswordRecovery.cs
- ExpressionQuoter.cs
- ObjectHandle.cs
- IncrementalReadDecoders.cs
- __FastResourceComparer.cs
- ImageList.cs
- InputLanguage.cs
- SelectionItemProviderWrapper.cs
- SrgsSubset.cs
- DetailsViewUpdateEventArgs.cs
- XmlBinaryWriterSession.cs
- SchemaTypeEmitter.cs
- EntityDataSource.cs
- SoapSchemaMember.cs
- ImageBrush.cs
- EventDriven.cs
- SettingsAttributeDictionary.cs
- OdbcConnectionPoolProviderInfo.cs
- TextServicesLoader.cs
- ElementNotEnabledException.cs
- DataGridViewCellEventArgs.cs
- ProtocolsConfigurationEntry.cs
- SystemException.cs
- Style.cs
- EditorPartChrome.cs
- RegisteredArrayDeclaration.cs
- FileUpload.cs
- ComponentResourceKey.cs
- FtpRequestCacheValidator.cs
- DetailsViewDeleteEventArgs.cs
- DataGridHeaderBorder.cs
- ViewRendering.cs
- GridViewRowPresenter.cs
- SuppressMessageAttribute.cs
- ResourceManager.cs
- AppearanceEditorPart.cs
- DataGridLength.cs
- Timer.cs
- ColorBlend.cs
- LoginName.cs
- SymbolPair.cs
- Activity.cs
- FormatterServicesNoSerializableCheck.cs
- ExtensionSurface.cs
- XmlAnyElementAttribute.cs
- XmlQueryType.cs
- MDIClient.cs
- UriTemplateCompoundPathSegment.cs
- KeyedCollection.cs
- CounterCreationDataConverter.cs
- AssemblyName.cs
- QueryMatcher.cs
- FaultDesigner.cs
- WebPartZoneCollection.cs
- OrderedParallelQuery.cs
- PingReply.cs
- XmlSchemaAttributeGroupRef.cs
- VariantWrapper.cs
- HtmlShim.cs
- WebScriptEnablingElement.cs
- DataGridViewCellValidatingEventArgs.cs
- SafeArrayTypeMismatchException.cs
- FormatException.cs
- FontFamilyIdentifier.cs
- StrongTypingException.cs
- XPathSingletonIterator.cs
- DataServices.cs
- ProxySimple.cs
- SystemException.cs
- UnmanagedHandle.cs
- XPathScanner.cs
- ViewEvent.cs
- OutputCacheModule.cs
- ValidationEventArgs.cs
- Scanner.cs