示例#1
0
        public static List <string> Descriptions(this TrackingTypes trackingTypes)
        {
            var descriptions = new List <string>();
            var available    = Enum.GetValues(typeof(TrackingTypes)).Cast <Enum>();

            foreach (TrackingTypes trackingType in available.Where(trackingTypes.HasFlag))
            {
                descriptions.Add(TrackingTypeDescription(trackingType));
            }

            return(descriptions);
        }
示例#2
0
 private static string TrackingTypeDescription(TrackingTypes trackingType)
 {
     switch (trackingType)
     {
         case TrackingTypes.AfterReceivePipeline: return "Request messages after port processing";
         case TrackingTypes.AfterSendPipeline: return "Request messages after port processing";
         case TrackingTypes.BeforeReceivePipeline: return "Request messages before port processing";
         case TrackingTypes.BeforeSendPipeline: return "Request messages before port processing";
         case TrackingTypes.TrackPropertiesAfterReceivePipeline: return "Request messages after port processing";
         case TrackingTypes.TrackPropertiesAfterSendPipeline: return "Request messages after port processing";
         case TrackingTypes.TrackPropertiesBeforeReceivePipeline: return "Request messages before port processing";
         case TrackingTypes.TrackPropertiesBeforeSendPipeline: return "Request messages before port processing";
         default: return string.Empty;
     }
 }
示例#3
0
        private static string TrackingTypeDescription(TrackingTypes trackingType)
        {
            switch (trackingType)
            {
            case TrackingTypes.AfterReceivePipeline: return("Request messages after port processing");

            case TrackingTypes.AfterSendPipeline: return("Request messages after port processing");

            case TrackingTypes.BeforeReceivePipeline: return("Request messages before port processing");

            case TrackingTypes.BeforeSendPipeline: return("Request messages before port processing");

            case TrackingTypes.TrackPropertiesAfterReceivePipeline: return("Request messages after port processing");

            case TrackingTypes.TrackPropertiesAfterSendPipeline: return("Request messages after port processing");

            case TrackingTypes.TrackPropertiesBeforeReceivePipeline: return("Request messages before port processing");

            case TrackingTypes.TrackPropertiesBeforeSendPipeline: return("Request messages before port processing");

            default: return(string.Empty);
            }
        }