private static string ConvertServiceIdToFullUri(string serviceId) { if (serviceId.StartsWith("system~", StringComparison.InvariantCultureIgnoreCase) || serviceId.StartsWith("system/", StringComparison.InvariantCultureIgnoreCase)) { return(serviceId.Substring(7)); } return(UriConverters.ConvertApiIdToFullUri(serviceId)); }
public async Task <IList <ApplicationEvent> > GetApplicationEvents( string applicationId, [FromUri(Name = "starttimeutc")] string startTimeUtc, [FromUri(Name = "endtimeutc")] string endTimeUtc, [FromUri(Name = "api-version")] string apiVersion = "6.2-preview", [FromUri(Name = "eventstypesfilter")] string eventsTypesFilter = null, [FromUri(Name = "excludeanalysisevents")] bool excludeAnalysisEvents = false, [FromUri(Name = "skipcorrelationlookup")] bool skipCorrelationLookup = false) { applicationId = UriConverters.ConvertApiIdToFullUri(applicationId); return(await this.RunAsync(new GetApplicationEventsOperation(apiVersion, this.CurrentRuntime, applicationId, startTimeUtc, endTimeUtc, eventsTypesFilter))); }