public static void SetDelayer(IAdvancedDIContainer thisMain, ref IAsyncDelayer delays)
 {
     PopulateContainer(thisMain);
     try
     {
         delays = thisMain.MainContainer !.Resolve <IAsyncDelayer>();
     }
     catch
     {
         delays = new AsyncDelayer(); //its okay to use default.
     }
 }
Ejemplo n.º 2
0
 public static void PopulateContainer(IAdvancedDIContainer thisMain) //this is probably the best thing to do.
 {
     if (thisMain.MainContainer != null)
     {
         return;
     }
     if (cons == null)
     {
         throw new BasicBlankException("Never populated the di container in old static.  Rethink");
     }
     thisMain.MainContainer = (IGamePackageResolver)cons;
 }