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
- CodeNamespaceImportCollection.cs
- Byte.cs
- DotExpr.cs
- SchemaElementDecl.cs
- PropertyRef.cs
- DataSourceCache.cs
- ConsumerConnectionPointCollection.cs
- NameObjectCollectionBase.cs
- DiscreteKeyFrames.cs
- TableAdapterManagerHelper.cs
- Aggregates.cs
- SimpleType.cs
- milexports.cs
- CheckableControlBaseAdapter.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- FontStretch.cs
- EntryPointNotFoundException.cs
- UnauthorizedWebPart.cs
- ServiceSecurityContext.cs
- XPathLexer.cs
- externdll.cs
- RequestedSignatureDialog.cs
- SoapAttributes.cs
- HTMLTagNameToTypeMapper.cs
- FocusManager.cs
- ParameterBuilder.cs
- TextBoxBaseDesigner.cs
- DataObjectCopyingEventArgs.cs
- ProtectedConfigurationProviderCollection.cs
- XsltSettings.cs
- IconBitmapDecoder.cs
- CodeTypeReference.cs
- XmlArrayItemAttribute.cs
- WorkflowEnvironment.cs
- OrderPreservingPipeliningSpoolingTask.cs
- SpellCheck.cs
- GridViewCancelEditEventArgs.cs
- PipeSecurity.cs
- NotifyInputEventArgs.cs
- AggregationMinMaxHelpers.cs
- ReachSerializationUtils.cs
- DataObjectCopyingEventArgs.cs
- ExceptionHelpers.cs
- StrongBox.cs
- DynamicResourceExtension.cs
- CompilerScope.cs
- XmlAttributeProperties.cs
- CompressedStack.cs
- Bits.cs
- Substitution.cs
- OleDbDataReader.cs
- ReaderWriterLockSlim.cs
- XmlSchemaFacet.cs
- XmlValueConverter.cs
- _ConnectionGroup.cs
- ConnectionInterfaceCollection.cs
- Logging.cs
- ConsoleTraceListener.cs
- ContextDataSource.cs
- smtppermission.cs
- HttpModulesSection.cs
- HotSpot.cs
- CollectionBuilder.cs
- ObjectManager.cs
- EntityKey.cs
- PropertyTab.cs
- ScriptRef.cs
- ServiceRoute.cs
- LineGeometry.cs
- MemoryMappedFile.cs
- ComponentCommands.cs
- ZoneIdentityPermission.cs
- WebBrowserProgressChangedEventHandler.cs
- ResolveNameEventArgs.cs
- TypefaceMap.cs
- MemoryRecordBuffer.cs
- PersonalizationProviderCollection.cs
- Point3DCollection.cs
- mansign.cs
- RijndaelManaged.cs
- NavigationPropertyEmitter.cs
- StreamGeometryContext.cs
- MessageQueue.cs
- Exceptions.cs
- ConfigErrorGlyph.cs
- ScriptManagerProxy.cs
- ErrorLog.cs
- ApplicationTrust.cs
- DistributedTransactionPermission.cs
- EntityClassGenerator.cs
- GroupBoxRenderer.cs
- RegistrationServices.cs
- Environment.cs
- RemoteWebConfigurationHost.cs
- ObjectStateManager.cs
- CompressStream.cs
- LambdaCompiler.Generated.cs
- LOSFormatter.cs
- CodeFieldReferenceExpression.cs
- SignedXml.cs