/* * this sends test events to processor (event hubs) * it should be removed from deployment version */ public static void SendProcessorTestMessages(Processor processor, int NumOfMessages, int NumOfPublishers) { try { InternalFunctions.SendTestEventsToProcessorHubsAsync(processor, NumOfMessages, NumOfPublishers).Wait(); } catch (AggregateException ae) { ae.ThrowPowerShell(); } }
public static Processor AddProcessor(string BaseAddress, Processor processor) { try { return(InternalFunctions.AddProcessorAsync(BaseAddress, processor).Result); } catch (AggregateException ae) { ae.ThrowPowerShell(); } return(null); }
public static string GetManagementApiEndPoint(string FabricEndPoint, string sMgmtAppInstanceName) { try { return(InternalFunctions.GetManagementApiEndPointAsync(FabricEndPoint, sMgmtAppInstanceName).Result); } catch (AggregateException ae) { ae.ThrowPowerShell(); } return(null); }
public static ProcessorRuntimeStatus[] GetDetailedProcessorStatus(string BaseAddress, string processorName) { try { return(InternalFunctions.GetDetailedProcessorStatusAsync(BaseAddress, processorName).Result); } catch (AggregateException ae) { ae.ThrowPowerShell(); } return(null); }
public static Processor[] GetAllProcesseros(string BaseAddress) { try { return(InternalFunctions.GetAllProcesserosAsync(BaseAddress).Result); } catch (AggregateException ae) { ae.ThrowPowerShell(); } return(null); }
public static Processor UpdateProcessor(string BaseAddress, string processorJson) { Processor processor = Processor.FromJsonString(processorJson); try { return(InternalFunctions.UpdateProcessorAsync(BaseAddress, processor).Result); } catch (AggregateException ae) { ae.ThrowPowerShell(); } return(null); }