In any place call:
[self.view endEditing:true];
will hide keyboard.
So, result the same as you call [sender resignFirstResponder] but in this case you need an object or you need to find him.
$s = New-PSSession -computerName someserverHostname.ru
Invoke-Command -Session $s -Scriptblock {
$gacUtil = "${Env:ProgramFiles(x86)}\NETFX 4.0 Tools\gacutil.exe";
$filesOnServer = Get-ChildItem C:\folderNameOnServer -Recurse | Where-Object {$_.name -like '*.dll'} | Select-Object fullname
$filesOnServer | % {
& $gacUtil '/nologo' '/if' $_.fullname;
$_.fullname;
}
iisreset;
;}
Remove-PSSession $s
net use W: /delete
net use W: \\serverName\C$\folder
copy "C:\Users\user\Documents\Visual Studio 2012\Projects\Project\bin\Debug\Project.wsp" W:\
$s = New-PSSession -computerName serverName
Invoke-Command -Session $s -Scriptblock {Add-PSSnapin Microsoft.SharePoint.Powershell;Update-SPSolution -Identity Project.wsp -LiteralPath c:\folder\Project.wsp -GACDeployment}
Remove-PSSession $s
using System;
using System.Threading;
namespace Common
{
public class Threading
{
public static void MarkThreadWith(string mark, object val)
{
LocalDataStoreSlot store = Thread.GetNamedDataSlot(mark);
if (store == null)
{
store = Thread.AllocateNamedDataSlot(mark);
}
Thread.SetData(store, val);
}
public static bool CheckThreadFor(string mark, T val) where T : IEquatable
{
LocalDataStoreSlot store = Thread.GetNamedDataSlot(mark);
if (store == null)
{
return false;
}
try
{
T newSlotData = (T)Thread.GetData(store);
return newSlotData.Equals(val);
}
///wrong thread
catch (NullReferenceException)
{
return false;
}
}
}
}