Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Data / Microsoft / SqlServer / Server / SmiContext.cs / 1 / SmiContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace Microsoft.SqlServer.Server { using System; using System.Data; using System.Data.Sql; using System.Data.SqlTypes; using System.Security.Principal; // NOTE: connection, transaction and context pipe operations could be // encapsulated in their own classes, and should if they get complex // (transaction is borderline at this point). internal abstract class SmiContext { internal abstract event EventHandler OutOfScope; internal abstract SmiConnection ContextConnection { get; } internal abstract long ContextTransactionId { get; } internal abstract System.Transactions.Transaction ContextTransaction { get; } internal abstract bool HasContextPipe { get; } internal abstract WindowsIdentity WindowsIdentity { get; } internal abstract SmiRecordBuffer CreateRecordBuffer ( SmiExtendedMetaData[] columnMetaData, // Extended metadata because it requires names, udttypename and xmlschemaname ignored SmiEventSink eventSink ); internal abstract SmiRequestExecutor CreateRequestExecutor ( string commandText, CommandType commandType, SmiParameterMetaData[] parameterMetaData, SmiEventSink eventSink ); // internal abstract object GetContextValue ( int key ); internal abstract void GetTriggerInfo ( SmiEventSink eventSink, out bool[] columnsUpdated, out TriggerAction action, out SqlXml eventInstanceData ); internal abstract void SendMessageToPipe( string message, SmiEventSink eventSink ); internal abstract void SendResultsStartToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SendResultsRowToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SendResultsEndToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SetContextValue ( int key, object value ); // Scratch LOB storage region internal virtual SmiStream GetScratchStream( SmiEventSink sink ) { // Adding as of V3 // Implement body with throw because there are only a couple of ways to get to this code: // 1) Client is calling this method even though the server negotiated for V2- and hasn't implemented V3 yet. // 2) Server didn't implement V3, but negotiated V3+. System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace Microsoft.SqlServer.Server { using System; using System.Data; using System.Data.Sql; using System.Data.SqlTypes; using System.Security.Principal; // NOTE: connection, transaction and context pipe operations could be // encapsulated in their own classes, and should if they get complex // (transaction is borderline at this point). internal abstract class SmiContext { internal abstract event EventHandler OutOfScope; internal abstract SmiConnection ContextConnection { get; } internal abstract long ContextTransactionId { get; } internal abstract System.Transactions.Transaction ContextTransaction { get; } internal abstract bool HasContextPipe { get; } internal abstract WindowsIdentity WindowsIdentity { get; } internal abstract SmiRecordBuffer CreateRecordBuffer ( SmiExtendedMetaData[] columnMetaData, // Extended metadata because it requires names, udttypename and xmlschemaname ignored SmiEventSink eventSink ); internal abstract SmiRequestExecutor CreateRequestExecutor ( string commandText, CommandType commandType, SmiParameterMetaData[] parameterMetaData, SmiEventSink eventSink ); // internal abstract object GetContextValue ( int key ); internal abstract void GetTriggerInfo ( SmiEventSink eventSink, out bool[] columnsUpdated, out TriggerAction action, out SqlXml eventInstanceData ); internal abstract void SendMessageToPipe( string message, SmiEventSink eventSink ); internal abstract void SendResultsStartToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SendResultsRowToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SendResultsEndToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SetContextValue ( int key, object value ); // Scratch LOB storage region internal virtual SmiStream GetScratchStream( SmiEventSink sink ) { // Adding as of V3 // Implement body with throw because there are only a couple of ways to get to this code: // 1) Client is calling this method even though the server negotiated for V2- and hasn't implemented V3 yet. // 2) Server didn't implement V3, but negotiated V3+. System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WsdlBuildProvider.cs
- ProxyWebPartManagerDesigner.cs
- HttpServerVarsCollection.cs
- XPathAncestorQuery.cs
- SQLUtility.cs
- InfoCardKeyedHashAlgorithm.cs
- SineEase.cs
- HttpStreams.cs
- IImplicitResourceProvider.cs
- URIFormatException.cs
- OutputCache.cs
- cookiecontainer.cs
- TranslateTransform.cs
- WorkflowApplicationException.cs
- TitleStyle.cs
- DataGridLinkButton.cs
- DispatcherObject.cs
- SemaphoreSecurity.cs
- TypographyProperties.cs
- PrtCap_Public.cs
- Sql8ExpressionRewriter.cs
- FileChangeNotifier.cs
- StylusTip.cs
- ObjectQuery.cs
- EventLogEntryCollection.cs
- FilePrompt.cs
- CryptoApi.cs
- LineSegment.cs
- XmlSerializerAssemblyAttribute.cs
- JapaneseLunisolarCalendar.cs
- KnowledgeBase.cs
- TriState.cs
- FixedSOMGroup.cs
- WebPartActionVerb.cs
- ColumnResizeUndoUnit.cs
- FileInfo.cs
- DocumentReference.cs
- ButtonChrome.cs
- ServiceKnownTypeAttribute.cs
- XamlFigureLengthSerializer.cs
- PersonalizationState.cs
- VerificationException.cs
- IgnorePropertiesAttribute.cs
- SAPIEngineTypes.cs
- RemoteEndpointMessageProperty.cs
- RepeatBehaviorConverter.cs
- ToolStripRendererSwitcher.cs
- BuildResultCache.cs
- OracleParameterCollection.cs
- Transform.cs
- unsafeIndexingFilterStream.cs
- CompleteWizardStep.cs
- DiscoveryEndpointElement.cs
- EmbeddedMailObject.cs
- ConnectionsZone.cs
- GlobalizationAssembly.cs
- SiteMembershipCondition.cs
- SqlClientMetaDataCollectionNames.cs
- AuthenticationSection.cs
- mediaeventshelper.cs
- EventBindingService.cs
- RequestQueue.cs
- SchemaNames.cs
- ToolStripDropDownMenu.cs
- TextDecorationCollectionConverter.cs
- SingleConverter.cs
- FlowchartDesigner.xaml.cs
- GridSplitter.cs
- GlyphTypeface.cs
- VBIdentifierName.cs
- AspNetHostingPermission.cs
- HitTestParameters.cs
- EntitySqlQueryCacheKey.cs
- SequentialActivityDesigner.cs
- NativeMethods.cs
- DataServices.cs
- AudioException.cs
- NumberSubstitution.cs
- ComAwareEventInfo.cs
- ProxyGenerator.cs
- DbProviderFactories.cs
- MethodSignatureGenerator.cs
- SortAction.cs
- SimpleApplicationHost.cs
- xml.cs
- XPathAncestorIterator.cs
- XmlIgnoreAttribute.cs
- TextEmbeddedObject.cs
- HttpListenerContext.cs
- RuleSettingsCollection.cs
- DrawingCollection.cs
- brushes.cs
- DiscoveryClientReferences.cs
- DTCTransactionManager.cs
- Util.cs
- LogAppendAsyncResult.cs
- PreservationFileReader.cs
- ContentPlaceHolder.cs
- DbInsertCommandTree.cs
- RijndaelManagedTransform.cs