예제 #1
0
        public static object WebServerJsonModel()
        {
            var obj = new {
                id = WebServerId.Create().Uuid
            };

            return(Core.Environment.Hal.Apply(Defines.Resource.Guid, obj));
        }
예제 #2
0
        public static object WebServerJsonModel()
        {
            var obj = new {
                id = WebServerId.CreateFromPath(ManagementUnit.Current.ApplicationHostConfigPath).Uuid
            };

            return(Core.Environment.Hal.Apply(Defines.Resource.Guid, obj));
        }
        public object Get(string id)
        {
            if (id != WebServerId.CreateFromPath(ManagementUnit.Current.ApplicationHostConfigPath).Uuid)
            {
                return(NotFound());
            }

            return(WebServerHelper.WebServerJsonModel());
        }
예제 #4
0
        public object Get(string id)
        {
            if (id != WebServerId.Create().Uuid)
            {
                return(NotFound());
            }

            return(WebServerHelper.WebServerJsonModel());
        }