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 override void OnInvoke(MethodInterceptionArgs args) | |
| { | |
| try | |
| { | |
| args.Proceed(); | |
| } | |
| catch (Exception ex) | |
| { | |
| var service = args.Instance as ITerritorySerivce; | |
| if(service != null) |
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 class TerritoryController : Controller | |
| { | |
| readonly ITerritoryService _terrService; | |
| public TerritoryController(ITerritoryService terrService) | |
| { | |
| _terrService = terrService; | |
| _terrService.AddValidationError = x => ModelState.AddModelError("", x); | |
| } |
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
| [assembly: ServiceErrorInterceptor(AttributeTargetTypes = "MyProject.Core.Services.*", AspectPriority = 10)] |
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
| [Serializable] | |
| [MulticastAttributeUsage(MulticastTargets.Method, TargetMemberAttributes = MulticastAttributes.Public)] | |
| public class ServiceErrorInterceptor : MethodInterceptionAspect | |
| { | |
| public override void OnInvoke(MethodInterceptionArgs args) | |
| { | |
| try | |
| { | |
| args.Proceed(); | |
| } |
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
| [Activity(MainLauncher=true, Label="Terms of Use")] | |
| public class TermsView : MvxActivity | |
| { | |
| public new TermsViewModel ViewModel | |
| { | |
| get { return (TermsViewModel)base.ViewModel; } | |
| set { base.ViewModel = value; } | |
| } | |
| protected override void OnViewModelSet () |
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 static class IoC | |
| { | |
| public static IContainer Initialize() | |
| { | |
| ObjectFactory.Initialize(x => | |
| { | |
| x.Scan(scan => | |
| { | |
| scan.TheCallingAssembly(); | |
| scan.WithDefaultConventions(); |
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 static class IoC | |
| { | |
| public static IContainer Initialize() | |
| { | |
| ObjectFactory.Initialize(x => | |
| { | |
| x.Scan(scan => | |
| { | |
| scan.TheCallingAssembly(); | |
| scan.WithDefaultConventions(); |
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 static class IoC | |
| { | |
| public static IContainer Initialize() | |
| { | |
| ObjectFactory.Initialize(x => | |
| { | |
| x.Scan(scan => | |
| { | |
| scan.TheCallingAssembly(); | |
| scan.WithDefaultConventions(); |
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 class BlobCloudService | |
| { | |
| readonly CloudBlobContainer _container; | |
| public BlobCloudService() | |
| { | |
| CloudStorageAccount storageAccount = CloudStorageAccount.Parse("your connection string"); | |
| CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); | |
| _container = blobClient.GetContainerReference("your container name"); | |
| } |
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
| me@MYCOMPUTER /d/zproj/NuGetGallery (master) | |
| $ git stash | |
| Saved working directory and index state WIP on master: a627dcf Merge remote-trac | |
| king branch 'upstream/master' | |
| HEAD is now at a627dcf Merge remote-tracking branch 'upstream/master' | |
| me@MYCOMPUTER /d/zproj/NuGetGallery (master) | |
| $ git status | |
| # On branch master | |
| nothing to commit, working directory clean |