Ejemplo n.º 1
0
 /// <summary>Get the full container of objects</summary>
 /// <returns>The container</returns>
 private static IObjContainer GetContainer()
 {
     if (DI.container == null)
     {
         DI.container = new MultiCommIOC();
         DI.container.Initialise(new AndroidDIExtraCreators());
     }
     return(DI.container);
 }
Ejemplo n.º 2
0
 /// <summary>Get the full container of objects</summary>
 /// <returns>The container</returns>
 public static IObjContainer GetContainer()
 {
     if (TDI.container == null)
     {
         TDI.container = new MultiCommIOC();
         TDI.container.Initialise(new TestDIExtraCreators());
     }
     return(TDI.container);
 }
Ejemplo n.º 3
0
 /// <summary>Get the full container of objects</summary>
 /// <returns>The container</returns>
 private static IObjContainer GetContainer()
 {
     if (DI.container == null)
     {
         DI.container = new MultiCommDashCrossPlatformIOC();
         DI.container.Initialise(new ExtraCreators());
     }
     return(DI.container);
 }
Ejemplo n.º 4
0
        /// <summary>Code logic and error handling here rather than UI</summary>
        /// <remarks>This makes less work when adding extra OS UIs</remarks>
        /// <param name="container">The Dependency injection container</param>
        public CommWrapper(IObjContainer container)
        {
            this.container = container;

            try {
                this.DoEthernetPort();
            }
            catch (Exception e) {
                this.log.Exception(11111, "On Constructor", "Calling PO", e);
            }
        }
Ejemplo n.º 5
0
 public CommDashWrapper(IObjContainer container)
 {
     this.container = container;
 }
Ejemplo n.º 6
0
 public void SetupFileScope()
 {
     this.OneTimeSetup();
     this.container = new TestContainer();
     this.container.Initialise(null);
 }