本文整理匯總了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();
}