Пример #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        protected BaseModule()
        {
            OnError.AddItemToStartOfPipeline(HandleError);

            vApiEntries = new List <ApiEntry>();

            vMethodMap = new Dictionary <ApiEntry.Method, RouteBuilder>();
            vMethodMap.Add(ApiEntry.Method.Get, Get);
            vMethodMap.Add(ApiEntry.Method.Post, Post);
            vMethodMap.Add(ApiEntry.Method.Put, Put);
            vMethodMap.Add(ApiEntry.Method.Delete, Delete);

            if (Version != null)
            {
                return;
            }

            lock (this) {
                GetConfigValues();
                BuildObjects();
            }
        }