示例#1
0
 internal static void InitializeResolver()
 {
     StaticContainer.InitContainer   = () => IocContainerImplWithUnity.Current;
     ConventionBasedHelper.Container = IocContainerImplWithUnity.Current;
     //REgister ContinuationInfo for shorten type info on JSON
     TypeCacheUtils.AddToTypeContractorCache(typeof(PromiseInfo));
     TypeCacheUtils.AddToTypeContractorCache(typeof(UniqueIDGenerator));
     TypeCacheUtils.AddToTypeContractorCache(typeof(ViewsState));
     TypeCacheUtils.AddToTypeContractorCache(typeof(List <ViewInfo>));
     TypeCacheUtils.AddToTypeContractorCache(typeof(List <ClientCommand>));
     TypeCacheUtils.AddToTypeContractorCache(typeof(List <PromiseInfo>));
     TypeCacheUtils.AddToTypeContractorCache(typeof(List <string>));
     TypeCacheUtils.AddAssemblyToTypeContractorCache(typeof(int).Assembly);
     TypeCacheUtils.AddAssemblyToTypeContractorCache(typeof(Bootstrapper).Assembly);
 }