Example #1
0
        /*
         * 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();
            }
        }
Example #2
0
 public static Processor AddProcessor(string BaseAddress, Processor processor)
 {
     try
     {
         return(InternalFunctions.AddProcessorAsync(BaseAddress, processor).Result);
     }
     catch (AggregateException ae)
     {
         ae.ThrowPowerShell();
     }
     return(null);
 }
Example #3
0
 public static string GetManagementApiEndPoint(string FabricEndPoint, string sMgmtAppInstanceName)
 {
     try
     {
         return(InternalFunctions.GetManagementApiEndPointAsync(FabricEndPoint, sMgmtAppInstanceName).Result);
     }
     catch (AggregateException ae)
     {
         ae.ThrowPowerShell();
     }
     return(null);
 }
Example #4
0
 public static ProcessorRuntimeStatus[] GetDetailedProcessorStatus(string BaseAddress, string processorName)
 {
     try
     {
         return(InternalFunctions.GetDetailedProcessorStatusAsync(BaseAddress, processorName).Result);
     }
     catch (AggregateException ae)
     {
         ae.ThrowPowerShell();
     }
     return(null);
 }
Example #5
0
 public static Processor[] GetAllProcesseros(string BaseAddress)
 {
     try
     {
         return(InternalFunctions.GetAllProcesserosAsync(BaseAddress).Result);
     }
     catch (AggregateException ae)
     {
         ae.ThrowPowerShell();
     }
     return(null);
 }
Example #6
0
        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);
        }