This file contains hidden or 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
| request.ContentType = contentType; | |
| if (!string.IsNullOrEmpty(etag)) | |
| request.Headers[HttpRequestHeader.IfNoneMatch] = | |
| string.Concat('"', etag, '"'); | |
| #if !(SILVERLIGHT || WINRT) | |
| request.AutomaticDecompression = | |
| DecompressionMethods.GZip | DecompressionMethods.Deflate; | |
| #endif | |
| #if WINRT | |
| request.Headers[HttpRequestHeader.AcceptEncoding] = "gzip,deflate"; |
This file contains hidden or 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
| // Setup AutoFac | |
| var builder = new ContainerBuilder(); | |
| DependancySetup(builder); | |
| var container = builder.Build(); | |
| DependencyResolver.SetResolver( | |
| new AutofacDependencyResolver(container)); | |
| // Setup WCF Web API Config | |
| var config = new WebApiConfiguration(); |
This file contains hidden or 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
| public void EnsureExist() | |
| { | |
| this.gameContainer.EnsureExist(true); | |
| this.gameQueueContainer.EnsureExist(true); | |
| this.userContainer.EnsureExist(true); | |
| this.inviteQueue.EnsureExist(); | |
| this.skirmishGameQueue.EnsureExist(); | |
| this.leaveGameQueue.EnsureExist(); | |
| } |
This file contains hidden or 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
| [HttpPost] | |
| public ActionResult Register(RegisterModel model) | |
| { | |
| var queue = | |
| new AzureQueue<UserRegistrationMessage> | |
| (account); | |
| var registrationBlob = | |
| new AzureBlobContainer<RegistrationTokenEntity> | |
| (account, true); |
This file contains hidden or 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 MvcHtmlHelpers; | |
| @{ | |
| Layout = null; | |
| } | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> |
This file contains hidden or 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
| <li class="name"> | |
| @Html.LabelFor(m => m.UserName) | |
| @Html.TextBoxFor(m => m.UserName) | |
| @Html.ValidationMessageFor(m => m.UserName) | |
| </li> | |
| <li class="name"> | |
| @Html.LabelFor(m => m.RegistrationCode) | |
| @Html.TextBoxFor(m => m.RegistrationCode) | |
| @Html.ValidationMessageFor(m => m.RegistrationCode) | |
| </li> |
This file contains hidden or 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
| #!/bin/bash | |
| # ---------------------- | |
| # KUDU Deployment Script | |
| # ---------------------- | |
| # Helpers | |
| # ------- | |
| exitWithMessageOnError () { |
This file contains hidden or 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
| request.ContentType = contentType; | |
| if (!string.IsNullOrEmpty(etag)) | |
| request.Headers[HttpRequestHeader.IfNoneMatch] = | |
| string.Concat('"', etag, '"'); | |
| #if !(SILVERLIGHT || WINRT) | |
| request.AutomaticDecompression = | |
| DecompressionMethods.GZip | DecompressionMethods.Deflate; | |
| #endif | |
| #if WINRT | |
| request.Headers[HttpRequestHeader.AcceptEncoding] = "gzip,deflate"; |
This file contains hidden or 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
| // Setup AutoFac | |
| var builder = new ContainerBuilder(); | |
| DependancySetup(builder); | |
| var container = builder.Build(); | |
| DependencyResolver.SetResolver( | |
| new AutofacDependencyResolver(container)); | |
| // Setup WCF Web API Config | |
| var config = new WebApiConfiguration(); |
This file contains hidden or 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
| protected void Application_Start() | |
| { | |
| CloudStorageAccount.SetConfigurationSettingPublisher( | |
| (configName, configSetter) => | |
| { | |
| string configuration = RoleEnvironment.IsAvailable ? | |
| RoleEnvironment | |
| .GetConfigurationSettingValue(configName) : | |
| ConfigurationManager.AppSettings[configName]; |