本文整理汇总了C#中System.Guid.ToHexString方法的典型用法代码示例。如果您正苦于以下问题:C# Guid.ToHexString方法的具体用法?C# Guid.ToHexString怎么用?C# Guid.ToHexString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Guid
的用法示例。
在下文中一共展示了Guid.ToHexString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckIn
public override void CheckIn(Guid token, IPEndPoint endPoint)
{
Client.DownloadData(Host + "checkin?token=" + token.ToHexString());
}
示例2: RepairRequest
public override string RepairRequest(Guid token, Guid storeID, string path)
{
return Client.DownloadString(Host + "repair?token=" + ID.ToHexString() + "&store=" + storeID.ToHexString() + "&path=" + Uri.EscapeUriString(path));
}
示例3: GetList
public override OpTicket GetList(Guid store)
{
byte[] data = Client.DownloadData(Host + "poll_list?token=" + store.ToHexString());
return new OpTicket(data);
}
示例4: AddStore
public override Guid AddStore(Guid token, string name)
{
Guid storeID = new Guid(Client.DownloadData(Host + "add_store?token=" + ID.ToHexString() + "&name=" + name));
CmdConsole.Print("Added Store - ID: " + storeID.ToHexString());
return storeID;
}
示例5: Register
//protected void RequestFile(string path)
//{
// //Request for new file, central will return a ticket for file
// byte[] ticketData = Client.DownloadData(Host + "repair?file" + path);
// OpTicket ticket = new OpTicket();// = new OpTicket(ticketData);
//}
public override Guid Register(string accessToken, string name)
{
ID = new Guid(Client.DownloadData(Host + "register?access_token=" + accessToken + "&name=" + name));
CmdConsole.Print("Registered - ID: " + ID.ToHexString());
return ID;
}
示例6: FileStoreEntry
public FileStoreEntry(Guid store, FileEntry entry)
{
StoreID = store;
Entry = entry;
storeIdStr = StoreID.ToHexString();
}