Example #1
0
        public ConcurrentStopwatch this[DataSourceOperation op] {
            get {
                switch (op)
                {
                case DataSourceOperation.Read:          return(Read);

                case DataSourceOperation.Write:         return(Write);

                case DataSourceOperation.Delete:        return(Delete);

                default:                                throw GAssert.LogAndMakeFailureException();
                }
            }
        }
        public DataSourceOperationStopwatches this[DataSourceType type] {
            get {
                switch (type)
                {
                case DataSourceType.MySql:     return(MySql);

                case DataSourceType.Mongo: return(Mongo);

                case DataSourceType.File:      return(File);

                case DataSourceType.Memcached: return(Memcached);

                case DataSourceType.Hades:     return(Hades);

                default: throw GAssert.LogAndMakeFailureException();
                }
            }
        }