Udostępnij za pośrednictwem


ServiceActivationOptions Struct

Definition

Activation options that may optionally be supplied to a service when activating it.

public value class ServiceActivationOptions : IEquatable<Microsoft::ServiceHub::Framework::ServiceActivationOptions>
[System.Runtime.Serialization.DataContract]
public struct ServiceActivationOptions : IEquatable<Microsoft.ServiceHub.Framework.ServiceActivationOptions>
[<System.Runtime.Serialization.DataContract>]
type ServiceActivationOptions = struct
Public Structure ServiceActivationOptions
Implements IEquatable(Of ServiceActivationOptions)
Inheritance
ServiceActivationOptions
Attributes
Implements

Remarks

This type must use only built-in types since every applicable IRemoteServiceBroker is required to be able to directly serialize it.

Properties

ActivationArguments

Gets or sets a map of arbitrary data, presumably meaningful to the service.

ClientCredentials

Gets or sets a map that describes the client's identity in terms that an identity or authorization service can interpret.

ClientCulture

Gets or sets the client's preferred culture.

ClientRpcTarget

Gets or sets an RPC target that the client offers to the requested service so the service can invoke members on the client.

ClientUICulture

Gets or sets the client's preferred UI culture.

MultiplexingStream

Gets or sets the Nerdbank.Streams.MultiplexingStream associated with the connection between the client and the service broker. This may be used to establish additional channels between client and service.

Methods

ApplyCultureToCurrentContext()

Applies the values of ClientCulture and ClientUICulture to the current ExecutionContext, if they have been set on this struct.

Equals(ServiceActivationOptions)

Indicates whether the current object is equal to another object of the same type.

SetClientDefaults()

Automatically set properties on this type where possible based on the client environment, if they have not already had values assigned.

Applies to