This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cspack \ServiceDefinition.csdef | |
/role:WebRole1;\CloudService.WebRole | |
/role:WorkerRole1;\CloudService.WorkerRole\bin\Release; | |
domgreen.CloudService.WorkerRole.dll | |
/out:CloudService.cspkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
csmanage /update-deployment /hosted-service:domgreen | |
/slot:production /status:suspended | |
csmanage /delete-deployment /hosted-service:domgreen | |
/slot:production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
csmanage /create-deployment /hosted-service:domgreen | |
/slot:production /name:domgreen | |
/label:domgreenLabel | |
/package:$(BlobStorageEndpoint)packages/CloudService.cspkg | |
/config:$(SolutionDir)\CloudService\ServiceConfiguration.cscfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
csmanage /update-deployment /hosted-service:domgreen | |
/slot:production /status:running |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<PropertyGroup> | |
... | |
<BlobStorageEndpoint> | |
http://domgreen.blob.core.windows.net/ | |
</BlobStorageEndpoint> | |
<PackageCommand> | |
cspack \ServiceDefinition.csdef | |
/role:WebRole1;\CloudService.WebRole | |
/role:WorkerRole1; | |
\CloudService.WorkerRole\bin\Release; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace serviceManagementConsoleApplication | |
{ | |
class Program | |
{ | |
private const string subscriberID = "..."; | |
static void Main(string[] args) | |
{ | |
var serviceManagment = ServiceManagementHelper.CreateServiceManagementChannel("WindowsAzureEndPoint", new X509Certificate2("insertcert")); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<system .servicemodel=""> | |
<bindings> | |
<webhttpbinding> | |
<binding name="WindowsAzureServiceManagement_WebHttpBinding" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00"> | |
<readerquotas maxstringcontentlength="1048576" maxbytesperread="131072"> | |
<security mode="Transport"> | |
<transport clientcredentialtype="Certificate"> | |
</transport> | |
</security> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool match = false; | |
var exp = new Regex(@"^[0-9a-z]+-*[0-9a-z]+$"); | |
if (exp.IsMatch(input)) | |
{ | |
if (input.Length >= 3 && input.Length <= 63) | |
{ | |
match = true; | |
Console.ForegroundColor = ConsoleColor.Green; | |
Console.WriteLine("VALID Queue Name: {0}", input); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using(new OperationContextScope((IContextChannel)WebRole.serviceManagement)) | |
{ | |
var hostedServices = WebRole.serviceManagement.ListHostedServices(subscriberID); | |
foreach (HostedService service in hostedServices) | |
{ | |
Trace.TraceInformation("Hosted Service: {0}", service.ServiceName); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string arguments = "-m " + cacheSize + | |
" -l " + endpoint.Address + | |
" -p " + endpoint.Port; | |
ProcessStartInfo startInfo = new ProcessStartInfo(); | |
startInfo.CreateNoWindow = false; | |
startInfo.UseShellExecute = false; | |
startInfo.FileName = "memcached.exe"; | |
startInfo.WindowStyle = ProcessWindowStyle.Hidden; | |
startInfo.Arguments = arguments; |
OlderNewer