Exemple #1
0
 public static QuestData.TableRecord GetQuestData(int id)
 {
     if (GetInstance.GetTable().ContainsKey(id))
     {
         return(GetInstance.GetTable()[id]);
     }
     return(new QuestData.TableRecord());
 }
Exemple #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private KeyFactory(String algorithm) throws NoSuchAlgorithmException
        private KeyFactory(String algorithm)
        {
            this.Algorithm_Renamed = algorithm;
            List <Service> list = GetInstance.getServices("KeyFactory", algorithm);

            ServiceIterator = list.Iterator();
            // fetch and instantiate initial spi
            if (NextSpi(null) == null)
            {
                throw new NoSuchAlgorithmException(algorithm + " KeyFactory not available");
            }
        }
        /// <summary>
        /// Returns a certificate factory object for the specified
        /// certificate type.
        ///
        /// <para> A new CertificateFactory object encapsulating the
        /// CertificateFactorySpi implementation from the specified Provider
        /// object is returned.  Note that the specified Provider object
        /// does not have to be registered in the provider list.
        ///
        /// </para>
        /// </summary>
        /// <param name="type"> the certificate type.
        /// See the CertificateFactory section in the <a href=
        /// "{@docRoot}/../technotes/guides/security/StandardNames.html#CertificateFactory">
        /// Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        /// for information about standard certificate types. </param>
        /// <param name="provider"> the provider.
        /// </param>
        /// <returns> a certificate factory object for the specified type.
        /// </returns>
        /// <exception cref="CertificateException"> if a CertificateFactorySpi
        ///          implementation for the specified algorithm is not available
        ///          from the specified Provider object.
        /// </exception>
        /// <exception cref="IllegalArgumentException"> if the {@code provider} is
        ///          null.
        /// </exception>
        /// <seealso cref= java.security.Provider
        ///
        /// @since 1.4 </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static final CertificateFactory getInstance(String type, java.security.Provider provider) throws CertificateException
        public static CertificateFactory GetInstance(String type, Provider provider)
        {
            try
            {
                Instance instance = GetInstance.getInstance("CertificateFactory", typeof(CertificateFactorySpi), type, provider);
                return(new CertificateFactory((CertificateFactorySpi)instance.impl, instance.provider, type));
            }
            catch (NoSuchAlgorithmException e)
            {
                throw new CertificateException(type + " not found", e);
            }
        }
        static void Main(string[] args)
        {
            bool       validPath  = false;
            DataAccess dataAccess = new DataAccess();

            Console.WriteLine("Hello & Welcome!");
            Console.WriteLine("Please enter a valid file path to begin:");

            // Determine whether the input is a valid file
            while (!validPath)
            {
                dataAccess.UserInput = Console.ReadLine();

                // 1. storing the file path
                // 2. verify it is an accessible location and file
                validPath = dataAccess.ValidateFile();

                if (!validPath)
                {
                    Console.WriteLine("File not found! Please try entering the complete file path again:");
                }
            }

            Console.WriteLine("Processing...");


            // Read in valid text from the file
            string fileData = dataAccess.ReadFile();

            if (string.IsNullOrWhiteSpace(fileData))
            {
                Console.WriteLine("Error: File data may be corrupt");
            }

            // Pass off to historgram generator object
            Dictionary <string, int> histograms =
                new HistogramGenerator(fileData)
                .Run();

            // Final failure check otherwise go to results output
            if (histograms != null)
            {
                Console.WriteLine("Results:");
                GetInstance.Write(histograms);
            }
            else
            {
                Console.WriteLine("Something went wrong. Please try again.");
            }

            // End
        }
Exemple #5
0
        /// <summary>
        /// Returns a Policy object of the specified type.
        ///
        /// <para> This method traverses the list of registered security providers,
        /// starting with the most preferred Provider.
        /// A new Policy object encapsulating the
        /// PolicySpi implementation from the first
        /// Provider that supports the specified type is returned.
        ///
        /// </para>
        /// <para> Note that the list of registered providers may be retrieved via
        /// the <seealso cref="Security#getProviders() Security.getProviders()"/> method.
        ///
        /// </para>
        /// </summary>
        /// <param name="type"> the specified Policy type.  See the Policy section in the
        ///    <a href=
        ///    "{@docRoot}/../technotes/guides/security/StandardNames.html#Policy">
        ///    Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        ///    for a list of standard Policy types.
        /// </param>
        /// <param name="params"> parameters for the Policy, which may be null.
        /// </param>
        /// <returns> the new Policy object.
        /// </returns>
        /// <exception cref="SecurityException"> if the caller does not have permission
        ///          to get a Policy instance for the specified type.
        /// </exception>
        /// <exception cref="NullPointerException"> if the specified type is null.
        /// </exception>
        /// <exception cref="IllegalArgumentException"> if the specified parameters
        ///          are not understood by the PolicySpi implementation
        ///          from the selected Provider.
        /// </exception>
        /// <exception cref="NoSuchAlgorithmException"> if no Provider supports a PolicySpi
        ///          implementation for the specified type.
        /// </exception>
        /// <seealso cref= Provider
        /// @since 1.6 </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static Policy getInstance(String type, Policy.Parameters params) throws NoSuchAlgorithmException
        public static Policy GetInstance(String type, Policy.Parameters @params)
        {
            CheckPermission(type);
            try
            {
                GetInstance.Instance instance = GetInstance.getInstance("Policy", typeof(PolicySpi), type, @params);
                return(new PolicyDelegate((PolicySpi)instance.impl, instance.provider, type, @params));
            }
            catch (NoSuchAlgorithmException nsae)
            {
                return(HandleException(nsae));
            }
        }
        public static bool SchelduleExistence(System.Action r, MonoBehaviour m, GetInstance instance)
        {
            T g = instance();

            if (g != null)
            {
                return(true);
            }
            else
            {
                m.StartCoroutine(Rotina(r));
                return(false);
            }
        }
Exemple #7
0
        /// <summary>
        /// Returns a Policy object of the specified type.
        ///
        /// <para> A new Policy object encapsulating the
        /// PolicySpi implementation from the specified Provider
        /// object is returned.  Note that the specified Provider object
        /// does not have to be registered in the provider list.
        ///
        /// </para>
        /// </summary>
        /// <param name="type"> the specified Policy type.  See the Policy section in the
        ///    <a href=
        ///    "{@docRoot}/../technotes/guides/security/StandardNames.html#Policy">
        ///    Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        ///    for a list of standard Policy types.
        /// </param>
        /// <param name="params"> parameters for the Policy, which may be null.
        /// </param>
        /// <param name="provider"> the Provider.
        /// </param>
        /// <returns> the new Policy object.
        /// </returns>
        /// <exception cref="SecurityException"> if the caller does not have permission
        ///          to get a Policy instance for the specified type.
        /// </exception>
        /// <exception cref="NullPointerException"> if the specified type is null.
        /// </exception>
        /// <exception cref="IllegalArgumentException"> if the specified Provider is null,
        ///          or if the specified parameters are not understood by
        ///          the PolicySpi implementation from the specified Provider.
        /// </exception>
        /// <exception cref="NoSuchAlgorithmException"> if the specified Provider does not
        ///          support a PolicySpi implementation for the specified type.
        /// </exception>
        /// <seealso cref= Provider
        /// @since 1.6 </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static Policy getInstance(String type, Policy.Parameters params, Provider provider) throws NoSuchAlgorithmException
        public static Policy GetInstance(String type, Policy.Parameters @params, Provider provider)
        {
            if (provider == null)
            {
                throw new IllegalArgumentException("missing provider");
            }

            CheckPermission(type);
            try
            {
                GetInstance.Instance instance = GetInstance.getInstance("Policy", typeof(PolicySpi), type, @params, provider);
                return(new PolicyDelegate((PolicySpi)instance.impl, instance.provider, type, @params));
            }
            catch (NoSuchAlgorithmException nsae)
            {
                return(HandleException(nsae));
            }
        }
Exemple #8
0
        public GameData(string _initData)
        {
            id              = _initData;             //1
            lv              = 1;                     //2
            exp             = 0;                     //3
            stage           = 1;                     //4
            stage_star      = "0";                   //5
            coin            = 1000;                  //6
            gem             = 0;                     //7
            heart           = 5;                     //8
            lasttime        = "2016/01/01 00:00:00"; //9
            AddTime0        = "2016/01/01 00:00:00"; //10
            AddTime1        = "2016/01/01 00:00:00"; //11
            AddTime2        = "2016/01/01 00:00:00"; //12
            Add0            = 5;                     //13
            Add1            = 5;                     //14
            Add2            = 3;                     //15
            BackgroundVol   = 1f;                    //16
            ButtonSoundVol  = 1f;                    //17
            EffectSoundVol  = 1f;                    //18
            BackgroundMute  = false;                 //19
            ButtonSoundMute = false;                 //20
            EffectMute      = false;                 //21
            YEONGHUIWEAPON  = "$";                   //22  "$"는 비어있음을 의미
            YEONGHUIDEFENCE = "$";                   //23
            DRAGONWEAPON    = "$";                   //24
            DRAGONDEFENCE   = "$";                   //25
            for (int i = 0; i < 4; i++)
            {
                ItemSlot[i] = -1;
            }
            for (int i = 0; i < 90; i++)
            {
                HoldItem[i] = "$:0";
            }

            GetInstance.SaveToCloud();
        }
Exemple #9
0
        /// <summary>
        /// Returns a KeyPairGenerator object that generates public/private
        /// key pairs for the specified algorithm.
        ///
        /// <para> This method traverses the list of registered security Providers,
        /// starting with the most preferred Provider.
        /// A new KeyPairGenerator object encapsulating the
        /// KeyPairGeneratorSpi implementation from the first
        /// Provider that supports the specified algorithm is returned.
        ///
        /// </para>
        /// <para> Note that the list of registered providers may be retrieved via
        /// the <seealso cref="Security#getProviders() Security.getProviders()"/> method.
        ///
        /// </para>
        /// </summary>
        /// <param name="algorithm"> the standard string name of the algorithm.
        /// See the KeyPairGenerator section in the <a href=
        /// "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyPairGenerator">
        /// Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        /// for information about standard algorithm names.
        /// </param>
        /// <returns> the new KeyPairGenerator object.
        /// </returns>
        /// <exception cref="NoSuchAlgorithmException"> if no Provider supports a
        ///          KeyPairGeneratorSpi implementation for the
        ///          specified algorithm.
        /// </exception>
        /// <seealso cref= Provider </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException
        public static KeyPairGenerator GetInstance(String algorithm)
        {
            List <Service>     list = GetInstance.getServices("KeyPairGenerator", algorithm);
            Iterator <Service> t    = list.Iterator();

            if (t.HasNext() == false)
            {
                throw new NoSuchAlgorithmException(algorithm + " KeyPairGenerator not available");
            }
            // find a working Spi or KeyPairGenerator subclass
            NoSuchAlgorithmException failure = null;

            do
            {
                Service s = t.Next();
                try
                {
                    Instance instance = GetInstance.getInstance(s, typeof(KeyPairGeneratorSpi));
                    if (instance.impl is KeyPairGenerator)
                    {
                        return(GetInstance(instance, algorithm));
                    }
                    else
                    {
                        return(new Delegate(instance, t, algorithm));
                    }
                }
                catch (NoSuchAlgorithmException e)
                {
                    if (failure == null)
                    {
                        failure = e;
                    }
                }
            } while (t.HasNext());
            throw failure;
        }
Exemple #10
0
        /// <summary>
        /// Returns a KeyPairGenerator object that generates public/private
        /// key pairs for the specified algorithm.
        ///
        /// <para> A new KeyPairGenerator object encapsulating the
        /// KeyPairGeneratorSpi implementation from the specified Provider
        /// object is returned.  Note that the specified Provider object
        /// does not have to be registered in the provider list.
        ///
        /// </para>
        /// </summary>
        /// <param name="algorithm"> the standard string name of the algorithm.
        /// See the KeyPairGenerator section in the <a href=
        /// "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyPairGenerator">
        /// Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        /// for information about standard algorithm names.
        /// </param>
        /// <param name="provider"> the provider.
        /// </param>
        /// <returns> the new KeyPairGenerator object.
        /// </returns>
        /// <exception cref="NoSuchAlgorithmException"> if a KeyPairGeneratorSpi
        ///          implementation for the specified algorithm is not available
        ///          from the specified Provider object.
        /// </exception>
        /// <exception cref="IllegalArgumentException"> if the specified provider is null.
        /// </exception>
        /// <seealso cref= Provider
        ///
        /// @since 1.4 </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static KeyPairGenerator getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException
        public static KeyPairGenerator GetInstance(String algorithm, Provider provider)
        {
            Instance instance = GetInstance.getInstance("KeyPairGenerator", typeof(KeyPairGeneratorSpi), algorithm, provider);

            return(GetInstance(instance, algorithm));
        }
Exemple #11
0
        /// <summary>
        /// Returns a {@code CertPathBuilder} object that implements the
        /// specified algorithm.
        ///
        /// <para> A new CertPathBuilder object encapsulating the
        /// CertPathBuilderSpi implementation from the specified Provider
        /// object is returned.  Note that the specified Provider object
        /// does not have to be registered in the provider list.
        ///
        /// </para>
        /// </summary>
        /// <param name="algorithm"> the name of the requested {@code CertPathBuilder}
        ///  algorithm.  See the CertPathBuilder section in the <a href=
        ///  "{@docRoot}/../technotes/guides/security/StandardNames.html#CertPathBuilder">
        /// Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        /// for information about standard algorithm names.
        /// </param>
        /// <param name="provider"> the provider.
        /// </param>
        /// <returns> a {@code CertPathBuilder} object that implements the
        ///          specified algorithm.
        /// </returns>
        /// <exception cref="NoSuchAlgorithmException"> if a CertPathBuilderSpi
        ///          implementation for the specified algorithm is not available
        ///          from the specified Provider object.
        /// </exception>
        /// <exception cref="IllegalArgumentException"> if the {@code provider} is
        ///          null.
        /// </exception>
        /// <seealso cref= java.security.Provider </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static CertPathBuilder getInstance(String algorithm, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
        public static CertPathBuilder GetInstance(String algorithm, Provider provider)
        {
            Instance instance = GetInstance.getInstance("CertPathBuilder", typeof(CertPathBuilderSpi), algorithm, provider);

            return(new CertPathBuilder((CertPathBuilderSpi)instance.impl, instance.provider, algorithm));
        }
        /// <summary>
        /// Returns a {@code CertPathValidator} object that implements the
        /// specified algorithm.
        ///
        /// <para> A new CertPathValidator object encapsulating the
        /// CertPathValidatorSpi implementation from the specified provider
        /// is returned.  The specified provider must be registered
        /// in the security provider list.
        ///
        /// </para>
        /// <para> Note that the list of registered providers may be retrieved via
        /// the <seealso cref="Security#getProviders() Security.getProviders()"/> method.
        ///
        /// </para>
        /// </summary>
        /// <param name="algorithm"> the name of the requested {@code CertPathValidator}
        ///  algorithm. See the CertPathValidator section in the <a href=
        ///  "{@docRoot}/../technotes/guides/security/StandardNames.html#CertPathValidator">
        /// Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        /// for information about standard algorithm names.
        /// </param>
        /// <param name="provider"> the name of the provider.
        /// </param>
        /// <returns> a {@code CertPathValidator} object that implements the
        ///          specified algorithm.
        /// </returns>
        /// <exception cref="NoSuchAlgorithmException"> if a CertPathValidatorSpi
        ///          implementation for the specified algorithm is not
        ///          available from the specified provider.
        /// </exception>
        /// <exception cref="NoSuchProviderException"> if the specified provider is not
        ///          registered in the security provider list.
        /// </exception>
        /// <exception cref="IllegalArgumentException"> if the {@code provider} is
        ///          null or empty.
        /// </exception>
        /// <seealso cref= java.security.Provider </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static CertPathValidator getInstance(String algorithm, String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
        public static CertPathValidator GetInstance(String algorithm, String provider)
        {
            Instance instance = GetInstance.getInstance("CertPathValidator", typeof(CertPathValidatorSpi), algorithm, provider);

            return(new CertPathValidator((CertPathValidatorSpi)instance.impl, instance.provider, algorithm));
        }
Exemple #13
0
        /// <summary>
        /// Initiates the incoming connection socket for the network server
        /// and initialises an instance of the HttpApplication.
        /// </summary>
        /// <returns></returns>
        public async void Start <T>(HttpApplicationFactory <T> factory) where T : IHttpAsyncHandler, new()
        {
            _getInstance = factory.GetApplicationInstance;

            try
            {
                // Find an IPv4 address on the host computer and attempt to establish
                // an incoming network socket over it on the specified port number.
                var entries = await Dns.GetHostEntryAsync(_host);

                if (0 == entries.AddressList.Length)
                {
                    throw new Exception($"Could not bind to address on host {_host}");
                }

                IPAddress address = null;
                foreach (var a in entries.AddressList)
                {
                    if (AddressFamily.InterNetwork == a.AddressFamily)
                    {
                        address = a;
                        break;
                    }
                }

                var localEndPoint = new IPEndPoint(address, _port);

                var listener = new Socket(localEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
                listener.Bind(localEndPoint);
                listener.Listen(10);

                var incomingBuffer = new ArraySegment <byte>(new byte[1024]);
                var message        = new StringBuilder();

                _handlerCompletionCallback = new AsyncCallback(OnHandlerCompletion);

                // Go into an infinite loop and wait for incoming
                // connections. When a connection is made, the application
                // receives the message sent by the client and pumps it
                // into the processing pipeline.
                while (true)
                {
                    _client = await listener.AcceptAsync();

                    var length = await _client.ReceiveAsync(incomingBuffer, SocketFlags.None);

                    message.Append(Encoding.ASCII.GetString(incomingBuffer.Array, 0, length));
                    Log.Verbose(message.ToString());
                    Log.Information("Received {length} bytes from client", length);

                    // Deserialize the incoming message buffer into a TcpServerWorkerRequest instance
                    var wr = TcpServerWorkerRequest.CreateWorkerRequest(incomingBuffer.Array);
                    ProcessRequest(wr);
                }
            }
            catch (SocketException exception)
            {
                Log.Fatal($"Could not start a server at {_host}:{_port}.\r\nError: {exception.Message}");
            }
            catch (SecurityException exception)
            {
                Log.Fatal($"A security violation occurred while starting a server at {_host}:{_port}.\r\nError: {exception.Message}");
            }
        }
Exemple #14
0
 public CacheItem(GetInstance <T> getter)
 {
     SetGetter(getter);
 }
Exemple #15
0
 /// <inheritdoc />
 public CommandProcessor(GetInstance getInstance)
 {
     this.getInstance = getInstance;
 }
Exemple #16
0
 void Confusion()
 {
     // This is particularly ugly...
     GetInstance()()[() => {}]();
 }
Exemple #17
0
        /// <summary>
        /// Returns a SecureRandom object that implements the specified
        /// Random Number Generator (RNG) algorithm.
        ///
        /// <para> A new SecureRandom object encapsulating the
        /// SecureRandomSpi implementation from the specified Provider
        /// object is returned.  Note that the specified Provider object
        /// does not have to be registered in the provider list.
        ///
        /// </para>
        /// <para> The returned SecureRandom object has not been seeded.  To seed the
        /// returned object, call the {@code setSeed} method.
        /// If {@code setSeed} is not called, the first call to
        /// {@code nextBytes} will force the SecureRandom object to seed itself.
        /// This self-seeding will not occur if {@code setSeed} was
        /// previously called.
        ///
        /// </para>
        /// </summary>
        /// <param name="algorithm"> the name of the RNG algorithm.
        /// See the SecureRandom section in the <a href=
        /// "{@docRoot}/../technotes/guides/security/StandardNames.html#SecureRandom">
        /// Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        /// for information about standard RNG algorithm names.
        /// </param>
        /// <param name="provider"> the provider.
        /// </param>
        /// <returns> the new SecureRandom object.
        /// </returns>
        /// <exception cref="NoSuchAlgorithmException"> if a SecureRandomSpi
        ///          implementation for the specified algorithm is not available
        ///          from the specified Provider object.
        /// </exception>
        /// <exception cref="IllegalArgumentException"> if the specified provider is null.
        /// </exception>
        /// <seealso cref= Provider
        ///
        /// @since 1.4 </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static SecureRandom getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException
        public static SecureRandom GetInstance(String algorithm, Provider provider)
        {
            Instance instance = GetInstance.getInstance("SecureRandom", typeof(SecureRandomSpi), algorithm, provider);

            return(new SecureRandom((SecureRandomSpi)instance.impl, instance.provider, algorithm));
        }
Exemple #18
0
 public void SetGetter(GetInstance <T> getter)
 {
     mGetter = getter;
 }
Exemple #19
0
        /// <summary>
        /// Returns a KeyFactory object that converts
        /// public/private keys of the specified algorithm.
        ///
        /// <para> A new KeyFactory object encapsulating the
        /// KeyFactorySpi implementation from the specified Provider
        /// object is returned.  Note that the specified Provider object
        /// does not have to be registered in the provider list.
        ///
        /// </para>
        /// </summary>
        /// <param name="algorithm"> the name of the requested key algorithm.
        /// See the KeyFactory section in the <a href=
        /// "{@docRoot}/../technotes/guides/security/StandardNames.html#KeyFactory">
        /// Java Cryptography Architecture Standard Algorithm Name Documentation</a>
        /// for information about standard algorithm names.
        /// </param>
        /// <param name="provider"> the provider.
        /// </param>
        /// <returns> the new KeyFactory object.
        /// </returns>
        /// <exception cref="NoSuchAlgorithmException"> if a KeyFactorySpi
        ///          implementation for the specified algorithm is not available
        ///          from the specified Provider object.
        /// </exception>
        /// <exception cref="IllegalArgumentException"> if the specified provider is null.
        /// </exception>
        /// <seealso cref= Provider
        ///
        /// @since 1.4 </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static KeyFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException
        public static KeyFactory GetInstance(String algorithm, Provider provider)
        {
            Instance instance = GetInstance.getInstance("KeyFactory", typeof(KeyFactorySpi), algorithm, provider);

            return(new KeyFactory((KeyFactorySpi)instance.impl, instance.provider, algorithm));
        }
Exemple #20
0
 /// <inheritdoc />
 public QueryProcessor(GetInstance getInstance)
 {
     this.getInstance = getInstance;
 }
 /// <inheritdoc />
 public CommandWithReturnProcessor(GetInstance getInstance)
 {
     this.getInstance = getInstance;
 }