Esempio n. 1
0
        /// <summary>
        ///     Creates the drop.  Handles drop-related exceptions by omitting their stack traces.
        ///     In all cases emits an appropriate <see cref="DropCreationEvent"/> indicating the
        ///     result of this operation.
        /// </summary>
        public async Task <IIpcResult> CreateAsync()
        {
            DropCreationEvent dropCreationEvent =
                await SendDropEtwEvent(
                    WrapDropErrorsIntoDropEtwEvent(InternalCreateAsync));

            return(dropCreationEvent.Succeeded
                ? IpcResult.Success(Inv("Drop {0} created.", DropName))
                : new IpcResult(IpcResultStatus.ExecutionError, dropCreationEvent.ErrorMessage));
        }
Esempio n. 2
0
        /// <summary>
        ///     Creates the drop.  Handles drop-related exceptions by omitting their stack traces.
        ///     In all cases emits an appropriate <see cref="DropCreationEvent"/> indicating the
        ///     result of this operation.
        /// </summary>
        public async Task <IIpcResult> CreateAsync()
        {
            DropCreationEvent dropCreationEvent =
                await SendDropEtwEvent(
                    WrapDropErrorsIntoDropEtwEvent(InternalCreateAsync));

            return(dropCreationEvent.Succeeded
                ? IpcResult.Success(I($"Drop {DropName} created."))
                : new IpcResult(ParseIpcStatus(dropCreationEvent.AdditionalInformation), dropCreationEvent.ErrorMessage));
        }
Esempio n. 3
0
 /// <inheritdoc/>
 public void Log(DropCreationEvent e)
 {
     LogDropEventLocally(e);
     m_etwEventSource.DropCreationEvent(e);
 }
Esempio n. 4
0
 public abstract void DropCreationEvent(LoggingContext context, DropCreationEvent cbEvent);
Esempio n. 5
0
 /// <nodoc/>
 public void DropCreationEvent(DropCreationEvent eventObj)
 {
     this.WriteEvent(8, eventObj);
 }
Esempio n. 6
0
 /// <inheritdoc/>
 public void Log(DropCreationEvent e)
 {
 }