Share via


FileSender Class

 

Sends a message to an output file.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Inheritance Hierarchy

System.Object
  Microsoft.ConfigurationManagement.Messaging.Framework.FileSender

Syntax

[SerializableAttribute]
public sealed class FileSender : IMessageSender
[SerializableAttribute]
public ref class FileSender sealed : IMessageSender
<SerializableAttribute>
Public NotInheritable Class FileSender
    Implements IMessageSender

Constructors

Name Description
System_CAPS_pubmethod FileSender()

Initializes a new instance of the FileSender class.

System_CAPS_pubmethod FileSender(String)

Initializes a new instance of the FileSender class.

Properties

Name Description
System_CAPS_pubpropertySystem_CAPS_static DefaultOutputPath

Gets or sets the default output directory for files. The default value is %TEMP%.

System_CAPS_pubpropertySystem_CAPS_static DefaultOutputSuffix

Gets or sets the default output file suffix. The default value is .msg.

System_CAPS_pubproperty OutputFilePath

Gets the output file name for files. This property supersedes OutputPath and OutputSuffix.

System_CAPS_pubproperty OutputPath

Gets or sets the output path for files. If this property is not set, the default value defined in DefaultOutputPath is uesd.

System_CAPS_pubproperty OutputSuffix

Gets or sets the output suffix for files. If this property is not set, the default value defined in DefaultOutputSuffix is used.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod SendAsync(IMessage)

Sends a message but doesn't receive a reply asynchronously.

System_CAPS_pubmethod SendSync(IMessage)

Sends a message and retrieves the reply synchronously.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent OnReceived

An event that fires after a message is received. The message contents can be changed before the message is returned to the caller. Only SendSync fires this event; SendAsync does not.

System_CAPS_pubevent OnSend

An event that fires before a message is sent. The message contents can be changed before the message is delivered or inspected. Both SendSync and SendAsync fire this event.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top