/// <summary> /// Creates a new file operation event and tracks the start of the event. /// Disposing the returned event will record its completion. /// </summary> /// <param name="filepath">File path</param> /// <param name="operation">File operation</param> /// <param name="size">Size parameter</param> /// <param name="description">Event description</param> /// <returns>Event as IDisposable</returns> public static IDisposable TrackFileOperationEvent(string filepath, Actions operation, int size, string description = "") { if (client == null) { return(DynamoAnalyticsClient.Disposable); } return(client.TrackFileOperationEvent(filepath, operation, size, description)); }