Export (0) Print
Expand All

IProfferServiceContract Interface

Enables clients to provide custom services to components on which the contract is implemented.

Namespace:  System.AddIn.Contract
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

public interface IProfferServiceContract : IContract

The IProfferServiceContract type exposes the following members.

  NameDescription
Public methodAcquireLifetimeTokenSpecifies that the contract is accessible to a client until the client revokes the contract. (Inherited from IContract.)
Public methodGetRemoteHashCodeReturns a hash code for the IContract. (Inherited from IContract.)
Public methodProfferServiceAdds a service to the set of services that can be accessed by clients of a component.
Public methodQueryContractReturns a contract that is implemented by this contract. (Inherited from IContract.)
Public methodRemoteEqualsIndicates whether the specified contract is equal to this IContract. (Inherited from IContract.)
Public methodRemoteToStringReturns a string representation of the current IContract. (Inherited from IContract.)
Public methodRevokeLifetimeTokenSpecifies that the contract is no longer accessible to a client. (Inherited from IContract.)
Public methodRevokeServiceRemoves a service from the set of services offered by a component.
Top

A component implements IProfferServiceContract to enable clients to offer services to the component. After a service has been offered to a component, other clients of the component can access the service. Components typically implement IProfferServiceContract on the same type on which they implement IServiceProviderContract.

Clients use the ProfferService method to add an IServiceProviderContract to the set of service providers offered by a component. Clients use the RevokeService method to remove an IServiceProviderContract from the set of service providers offered by a component.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft