本文整理汇总了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);
}
示例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);
}
示例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;
}
示例4: Set
public uint Set(UUID clientGUID, string settings)
{
var result = PortalRepository.UserSettingsSet(clientGUID.ToGuid(), Request.User.Guid, settings);
return result;
}
示例5: Get
public Dto.UserSettings Get(UUID clientGUID )
{
var result = PortalRepository.UserSettingsGet(clientGUID.ToGuid(), Request.User.Guid);
return new Dto.UserSettings(result);
}
示例6: Delete
public uint Delete(UUID clientGUID )
{
var result = PortalRepository.UserSettingsDelete(clientGUID.ToGuid(), Request.User.Guid);
return result;
}
示例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);
}
示例8: Get
public Dto.ClientSettings Get(UUID guid)
{
var clientSettings = PortalRepository.ClientSettingsGet(guid.ToGuid());
return new Dto.ClientSettings(clientSettings);
}
示例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);
}