Configures a callback service implementation in a client application.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Specifies whether to automatically close a session when a service closes a duplex session.
Gets or sets whether a service supports one thread, multiple threads, or reentrant calls.
Gets or sets a value that specifies whether to send unknown serialization data onto the wire.
Gets or sets the maximum number of items allowed in a serialized object.
Specifies the transaction isolation level.
Gets or sets the period within which a transaction must complete.
Gets or sets a value that specifies whether to use the current synchronization context to choose the thread of execution.
Gets or sets a value that specifies whether the system or the application enforces SOAP MustUnderstand header processing.
This API supports the product infrastructure and is not intended to be used directly from your code. Returns a value that indicates whether this instance is equal to a specified object.(Inherited from Attribute.)
Returns the hash code for this instance.(Inherited from Attribute.)
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.(Inherited from Attribute.)
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.(Inherited from Attribute.)
Returns a string that represents the current object.(Inherited from Object.)
|_Attribute::GetIDsOfNames(Guid%, IntPtr, UInt32, UInt32, IntPtr)|
Maps a set of names to a corresponding set of dispatch identifiers.(Inherited from Attribute.)
|_Attribute::GetTypeInfo(UInt32, UInt32, IntPtr)|
Retrieves the type information for an object, which can be used to get the type information for an interface.(Inherited from Attribute.)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).(Inherited from Attribute.)
|_Attribute::Invoke(UInt32, Guid%, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)|
Provides access to properties and methods exposed by an object.(Inherited from Attribute.)
Configures the binding elements to support the callback behavior.
Configures the client runtime to support the callback object.
Implementation of the ApplyDispatchBehavior method. This implementation has no effect.
Validates the endpoint description prior to building the runtime.
Use the ServiceBehaviorAttribute attribute with the exception of instancing behavior and transaction settings.attribute to configure or extend the execution behavior of a callback contract implementation in a client application. This attribute performs the same function for the callback class as the
The InvalidOperationException exception is thrown at runtime.must be applied to the class that implements the callback contract. If applied to a non-duplex contract implementation an
You can also use the OperationBehaviorAttribute attribute for the callback operation implementations. However, if OperationBehaviorAttribute is used on a callback operation, the ReleaseInstanceMode property must be None or an InvalidOperationException exception is thrown at runtime.
The following properties are available:
The AutomaticSessionShutdown property automatically closes the session when the channel is closed and the callback has finished processing any remaining messages.
The ConcurrencyMode property controls the internal threading model, enabling support for reentrant or multithreaded callback objects.
The IgnoreExtensionDataObject property enables the runtime to ignore extra serialization information that is not required to process the message.
The IncludeExceptionDetailInFaults property specifies whether unhandled exceptions in a service are returned to the service as SOAP faults for debugging purposes.
The MaxItemsInObjectGraph property limits on the number of items in an object graph that are serialized.
The TransactionIsolationLevel property specifies the transaction isolation level that the contract supports.
The TransactionTimeout property specifies the time period within which a transaction must complete or it aborts.
The ValidateMustUnderstand property informs the system whether it should confirm that SOAP headers marked as MustUnderstand have, in fact, been understood.
The following code example shows a SynchronizationContext object to determine which thread to marshal to, the ValidateMustUnderstand property to enforce message validation, and the IncludeExceptionDetailInFaults property to return exceptions as FaultException objects to the service for debugging purposes.on a callback object that uses the
Available since 8
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 4.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.