Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / ServiceModel / Persistence / PersistenceProvider.cs / 1305376 / PersistenceProvider.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel.Persistence
{
using System;
using System.ServiceModel.Channels;
public abstract class PersistenceProvider : CommunicationObject
{
internal static readonly TimeSpan DefaultOpenClosePersistenceTimout = TimeSpan.FromSeconds(15);
Guid id;
protected PersistenceProvider(Guid id)
{
this.id = id;
}
public Guid Id
{
get
{
return this.id;
}
}
public abstract IAsyncResult BeginCreate(object instance, TimeSpan timeout, AsyncCallback callback, object state);
public abstract IAsyncResult BeginDelete(object instance, TimeSpan timeout, AsyncCallback callback, object state);
public abstract IAsyncResult BeginLoad(TimeSpan timeout, AsyncCallback callback, object state);
public virtual IAsyncResult BeginLoadIfChanged(TimeSpan timeout, object instanceToken, AsyncCallback callback, object state)
{
return this.BeginLoad(timeout, callback, state);
}
public abstract IAsyncResult BeginUpdate(object instance, TimeSpan timeout, AsyncCallback callback, object state);
public abstract object Create(object instance, TimeSpan timeout);
public abstract void Delete(object instance, TimeSpan timeout);
public abstract object EndCreate(IAsyncResult result);
public abstract void EndDelete(IAsyncResult result);
public abstract object EndLoad(IAsyncResult result);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021")]
public virtual bool EndLoadIfChanged(IAsyncResult result, out object instance)
{
instance = this.EndLoad(result);
return true;
}
public abstract object EndUpdate(IAsyncResult result);
public abstract object Load(TimeSpan timeout);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021")]
public virtual bool LoadIfChanged(TimeSpan timeout, object instanceToken, out object instance)
{
instance = this.Load(timeout);
return true;
}
public abstract object Update(object instance, TimeSpan timeout);
}
}
// 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
- ZipPackage.cs
- PrePrepareMethodAttribute.cs
- ViewStateModeByIdAttribute.cs
- DispatcherExceptionEventArgs.cs
- RequestCachePolicyConverter.cs
- DataKeyCollection.cs
- StringStorage.cs
- DataGridViewCellValidatingEventArgs.cs
- LicenseManager.cs
- ProfileInfo.cs
- XmlTypeMapping.cs
- XmlSchemaObject.cs
- SkewTransform.cs
- SynchronizedPool.cs
- XmlDeclaration.cs
- mda.cs
- __Filters.cs
- Error.cs
- AttributedMetaModel.cs
- OutputScopeManager.cs
- PassportAuthentication.cs
- IList.cs
- InputChannelAcceptor.cs
- CacheChildrenQuery.cs
- GroupBox.cs
- FixedSOMGroup.cs
- MethodImplAttribute.cs
- XmlFormatExtensionAttribute.cs
- IOThreadScheduler.cs
- UserInitiatedNavigationPermission.cs
- PartialCachingAttribute.cs
- RadioButtonPopupAdapter.cs
- TableSectionStyle.cs
- RIPEMD160Managed.cs
- CheckoutException.cs
- ErrorProvider.cs
- AuthorizationRule.cs
- RoutedUICommand.cs
- OutKeywords.cs
- AsnEncodedData.cs
- CollectionEditorDialog.cs
- ElementHostAutomationPeer.cs
- CompatibleComparer.cs
- ZipIOLocalFileHeader.cs
- storepermissionattribute.cs
- ImageField.cs
- SimpleBitVector32.cs
- NeutralResourcesLanguageAttribute.cs
- DesignerDataSourceView.cs
- login.cs
- OracleSqlParser.cs
- WorkflowInstanceExtensionCollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- InvalidEnumArgumentException.cs
- ScriptResourceInfo.cs
- BasicDesignerLoader.cs
- InvokeMethodActivity.cs
- TextPointerBase.cs
- ModelPropertyCollectionImpl.cs
- Expressions.cs
- FieldMetadata.cs
- AxHost.cs
- DataRowCollection.cs
- DeclarativeExpressionConditionDeclaration.cs
- DisableDpiAwarenessAttribute.cs
- VisualTreeUtils.cs
- XmlSchemaAll.cs
- Rect3DValueSerializer.cs
- ImageMap.cs
- ScrollProperties.cs
- AutomationProperty.cs
- SqlCommand.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Int64AnimationUsingKeyFrames.cs
- IEnumerable.cs
- DeploymentExceptionMapper.cs
- UIElementParaClient.cs
- InputProcessorProfilesLoader.cs
- MappingMetadataHelper.cs
- GroupItemAutomationPeer.cs
- DbDeleteCommandTree.cs
- TypedTableBase.cs
- XmlJsonWriter.cs
- DataSysAttribute.cs
- FormattedText.cs
- EntityDataSourceChangingEventArgs.cs
- GetWinFXPath.cs
- FamilyTypeface.cs
- WebConfigManager.cs
- GraphicsContainer.cs
- SiteMapNode.cs
- ManagementNamedValueCollection.cs
- ListViewUpdatedEventArgs.cs
- FormViewModeEventArgs.cs
- MembershipPasswordException.cs
- DataGridViewCellStyleEditor.cs
- WebPartVerb.cs
- ForeignConstraint.cs
- DataGridViewRow.cs