Multiple choice technology architecture

You need to create a source for this service. Which command completes the code? //Add any initialization after the InitializeComponent() callif (!FMEventLog.SourceExists("FileMonitorWS") { FMEventLog. MISSING CODE ("FileMonitorWS", "FMEventLog")}FMEventLog.Source = "FileWS";FMEEventLog.Log = "FMEventLog";

  1. BuildEventSource

  2. CreateEventSource

  3. CallEventSource

  4. All

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The CreateEventSource method is used to register an event source with the event log. The code checks if the source exists using SourceExists, then creates it if needed. This establishes the source name so the service can write events to the log.