IInteraction Interface
Identifies a type as being an interaction

Namespace: MARC.Everest.Interfaces
Assembly: MARC.Everest.Phone (in MARC.Everest.Phone.dll) Version: 1.5.0.0 (1.5.0)

Syntax

C#

public interface IInteraction : IIdentifiable, 
	IGraphable

Remarks

This interface is used by GPMR to denote RMIM classes which contain all of the "core" information that an interaction would carry. Note that the presence of this interface does not mean the class is an interaction, rather it may be the base class for an interaction. For a definitive signal that a class is an interaction, the StructureAttribute or InteractionAttribute attribute should be used.

This interface is usually attached to the Message class that represents a transport wrapper which is used by an interaction to "bind" together a transport, control act and payload.

Examples

Parsing an Interaction

IGraphable instance = formatter.ParseObject(File.OpenRead(@"C:\temp.xml"));

// We can get the identifier 
if(instance is IIdentifiable)
    Console.WriteLine((instance as IIdentifiable).Id);

// Or we can use the IInteraction interface to get interaction details
IInteraction interaction = instance as IInteraction;
if(interaction != null)
    Console.WriteLine(interaction.InteractionId.Extension);

Version Information

Everest Compact Framework

Supported in: 1.2 Compact

Everest Framework

Supported in: 1.2, 1.0

See Also