コード例 #1
0
        private Uri GetRestEndPointUrl(StdEnum stmName)
        {
            StmEndPoint stmEndPoint = new StmEndPoint(stmName);
            var         key         = stmName.ToString() + "_FunctionManagerServiceUrl";

            if (ComponentManager.KeyValueParameters.IsKeyExists(key))
            {
                stmEndPoint.RestEndPointUrl = new Uri(ComponentManager.KeyValueParameters.GetValue(key));
            }
            else
            {
                if (ComponentManager.FunctionManagerServiceUrl != null)
                {
                    stmEndPoint.RestEndPointUrl = new Uri(ComponentManager.FunctionManagerServiceUrl);
                }
                else
                {
                    stmEndPoint.RestEndPointUrl = FunctionsFactory.DefaultUrl;
                }
            }
            GetRestEndPointUrl(stmEndPoint);
            return(stmEndPoint.RestEndPointUrl);
        }
コード例 #2
0
 partial void GetRestEndPointUrl(StmEndPoint stmEndPoint);