Click or drag to resize

FederatedChannelFactoryT Class

Provides factory methods to create channels to claims aware services secured with SAML tokens.
Inheritance Hierarchy
SystemObject
  Be.Vlaanderen.Framework.IdentityFederatedChannelFactoryT

Namespace:  Be.Vlaanderen.Framework.Identity
Assembly:  Be.Vlaanderen.Framework.Identity (in Be.Vlaanderen.Framework.Identity.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class FederatedChannelFactory<T>

Type Parameters

T
The type of the channel to be created by the FederatedChannelFactory

The FederatedChannelFactoryT type exposes the following members.

Constructors
  NameDescription
Public methodFederatedChannelFactoryT
Initializes a new instance of the FederatedChannelFactoryT class.
Top
Properties
  NameDescription
Public propertyCredentials
Gets the credentials used by a client to communicate to a service endpoint over the channels produced by the factory.
Top
Methods
  NameDescription
Public methodClearTokenCache
Removes the token for the current credentials from the cache entry.
Public methodClearTokenCacheActAs
Removes an ActAs token from the cache.
Public methodClearTokenCacheOnBehalfOf
Removes an OnBehalfOf token from the cache.
Public methodCreateChannel
Creates a new service channel.
Public methodCreateChannelActingAsCurrentUser
Creates a channel acting as the current user.
Public methodCreateChannelOnBehalfOfCurrentUser
Creates a channel on behalf of the current user.
Top
Remarks

SAML tokens will be cached for reuse to improve performance.

Examples

var factory = new FederatedChannelFactory<ServiceReference.IServiceChannel>("WS2007FederationHttpBinding_IService_Certificate");
var channel = factory.CreateChannelActingAsCurrentUser();
using (channel.CreateSafeDisposer())
{
    this.Data = channel.GetData(42);
}

See Also