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
- DrawListViewSubItemEventArgs.cs
- ConsoleEntryPoint.cs
- Schedule.cs
- SBCSCodePageEncoding.cs
- SiteMapNodeItemEventArgs.cs
- GeneralTransform3D.cs
- SafeReversePInvokeHandle.cs
- LogReserveAndAppendState.cs
- CompiledQuery.cs
- TextSchema.cs
- MatrixTransform.cs
- storepermission.cs
- EntityClassGenerator.cs
- NamespaceCollection.cs
- SourceSwitch.cs
- Message.cs
- Line.cs
- OleDbCommand.cs
- GcHandle.cs
- Assembly.cs
- SecureStringHasher.cs
- WebServiceFaultDesigner.cs
- OutputWindow.cs
- ScrollBarRenderer.cs
- AnnotationComponentManager.cs
- TypeExtensions.cs
- XmlQualifiedName.cs
- NamedPipeTransportManager.cs
- UrlPath.cs
- XpsLiterals.cs
- ColumnResizeUndoUnit.cs
- ClientRuntimeConfig.cs
- Tokenizer.cs
- ServiceBuildProvider.cs
- DataGridViewRowsRemovedEventArgs.cs
- AttributeTable.cs
- HashHelper.cs
- CompatibleComparer.cs
- LZCodec.cs
- DragAssistanceManager.cs
- RemotingSurrogateSelector.cs
- WebBrowserSiteBase.cs
- HeaderUtility.cs
- DataGridViewSelectedRowCollection.cs
- InputGestureCollection.cs
- ExpressionEditorAttribute.cs
- FocusWithinProperty.cs
- DBNull.cs
- ObjectViewListener.cs
- DiagnosticSection.cs
- util.cs
- TransformerInfo.cs
- SoapSchemaMember.cs
- Pts.cs
- SqlNode.cs
- Canvas.cs
- FileLevelControlBuilderAttribute.cs
- TokenBasedSetEnumerator.cs
- Events.cs
- ForEachAction.cs
- WindowsEditBox.cs
- SplashScreen.cs
- ContractSearchPattern.cs
- WindowsListViewSubItem.cs
- DataService.cs
- ExceptionHandlerDesigner.cs
- MultipleFilterMatchesException.cs
- WebPartDisplayModeCollection.cs
- CallbackValidator.cs
- XPathBuilder.cs
- MenuScrollingVisibilityConverter.cs
- MasterPageCodeDomTreeGenerator.cs
- OutOfProcStateClientManager.cs
- PagePropertiesChangingEventArgs.cs
- InkCanvas.cs
- TimeSpanSecondsConverter.cs
- EmbeddedMailObject.cs
- ValueExpressions.cs
- HyperLinkField.cs
- SplineKeyFrames.cs
- GeneralTransform3DTo2D.cs
- MetabaseSettingsIis7.cs
- Scripts.cs
- SqlStatistics.cs
- wmiprovider.cs
- VersionedStream.cs
- TabControl.cs
- FilteredAttributeCollection.cs
- DocumentViewer.cs
- ArrayTypeMismatchException.cs
- OSFeature.cs
- InvokePattern.cs
- TextMetrics.cs
- BamlTreeUpdater.cs
- AdornedElementPlaceholder.cs
- WindowsClaimSet.cs
- BuildResult.cs
- Perspective.cs
- ParameterCollection.cs
- SerialPinChanges.cs