当前位置: 首页>>代码示例>>C#>>正文


C# UUID.ToGuid方法代码示例

本文整理汇总了C#中UUID.ToGuid方法的典型用法代码示例。如果您正苦于以下问题:C# UUID.ToGuid方法的具体用法?C# UUID.ToGuid怎么用?C# UUID.ToGuid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UUID的用法示例。


在下文中一共展示了UUID.ToGuid方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Delete

        public uint Delete(UUID GUID)
        {
            var userId = Request.User.Guid;
            var groupIds = Request.Groups.Select(group => group.Guid);

            return ObjectDelete.Delete(GUID.ToGuid(), userId, groupIds);
        }
开发者ID:CHAOS-Community,项目名称:CHAOS.Portal.MCM,代码行数:7,代码来源:Object.cs

示例2: Create

        public Data.Dto.v5.Object Create(UUID GUID, uint objectTypeID, uint folderID)
        {
            var userId = Request.User.Guid;
            var groupIds = Request.Groups.Select(group => group.Guid);

            var result = ObjectCreate.Create(GUID.ToGuid(), objectTypeID, folderID, userId, groupIds);

            return Data.Dto.v5.Object.Create(result);
        }
开发者ID:CHAOS-Community,项目名称:CHAOS.Portal.MCM,代码行数:9,代码来源:Object.cs

示例3: Get

        public IPagedResult<Data.Dto.v5.Object> Get(IQuery query, UUID accessPointGUID, bool includeMetadata = false, bool includeFiles = false, bool includeObjectRelations = false, bool includeAccessPoints = false)
        {
            var accesspointGuid = accessPointGUID != null ? accessPointGUID.ToGuid() : (Guid?)null;

            query.Query = query.Query.Replace("GUID:", "Id:");
            query.Query = query.Query.Replace("ObjectTypeID:", "ObjectTypeId:");
            
            var result = ObjectQueryHelper.GetObjects(query, accesspointGuid, GetFoldersWithAccess(), includeAccessPoints, includeMetadata, includeFiles, includeObjectRelations);

            var page = new PagedResult<Data.Dto.v5.Object>(result.FoundCount,
                                                           result.StartIndex,
                                                           result.Results.Select(item => Data.Dto.v5.Object.Create(((ObjectViewData) item).Object)));

            return page;
        }
开发者ID:CHAOS-Community,项目名称:CHAOS.Portal.MCM,代码行数:15,代码来源:Object.cs

示例4: Set

        public uint Set(UUID clientGUID, string settings)
        {
            var result = PortalRepository.UserSettingsSet(clientGUID.ToGuid(), Request.User.Guid, settings);

            return result;
        }
开发者ID:CHAOS-Community,项目名称:Portal,代码行数:6,代码来源:UserSettings.cs

示例5: Get

        public Dto.UserSettings Get(UUID clientGUID )
        {
            var result = PortalRepository.UserSettingsGet(clientGUID.ToGuid(), Request.User.Guid);

            return new Dto.UserSettings(result);
        }
开发者ID:CHAOS-Community,项目名称:Portal,代码行数:6,代码来源:UserSettings.cs

示例6: Delete

        public uint Delete(UUID clientGUID )
        {
            var result = PortalRepository.UserSettingsDelete(clientGUID.ToGuid(), Request.User.Guid);

            return result;
        }
开发者ID:CHAOS-Community,项目名称:Portal,代码行数:6,代码来源:UserSettings.cs

示例7: Set

        public uint Set( UUID guid, string name, string settings )
        {
            if(!Request.User.HasPermission(SystemPermissons.Manage)) throw new InsufficientPermissionsException( "User does not have manage permissions" );

            return PortalRepository.ClientSettingsSet(guid.ToGuid(), name, settings);
        }
开发者ID:CHAOS-Community,项目名称:Portal,代码行数:6,代码来源:ClientSettings.cs

示例8: Get

        public Dto.ClientSettings Get(UUID guid)
        {
            var clientSettings = PortalRepository.ClientSettingsGet(guid.ToGuid());

            return new Dto.ClientSettings(clientSettings);
        }
开发者ID:CHAOS-Community,项目名称:Portal,代码行数:6,代码来源:ClientSettings.cs

示例9: SetPublishSettings

        public uint SetPublishSettings(UUID objectGUID, UUID accessPointGUID, DateTime? startDate, DateTime? endDate)
        {
            var userId = Request.User.Guid;
            var groupIds = Request.Groups.Select(group => group.Guid);

            return ObjectSetPublishSettings.SetPublishSettings(objectGUID.ToGuid(), accessPointGUID.ToGuid(), startDate, endDate, userId, groupIds);
        }
开发者ID:CHAOS-Community,项目名称:CHAOS.Portal.MCM,代码行数:7,代码来源:Object.cs


注:本文中的UUID.ToGuid方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。