Exemplo n.º 1
0
        public static EnchiladaMessageDataRepository Create(this IEnchiladaMessageDataRepositoryFactory factory,
                                                            IEnchiladaAdapterConfiguration enchiladaAdapterConfiguration)
        {
            var enchiladaConfiguration = new EnchiladaConfiguration()
            {
                Adapters = new[]
                {
                    enchiladaAdapterConfiguration
                }
            };

            var enchiladaFileProviderResolver = new EnchiladaFileProviderResolver(enchiladaConfiguration);

            var baseUri = new Uri($"enchilada://{enchiladaAdapterConfiguration.AdapterName}");

            return(factory.Create(enchiladaFileProviderResolver, baseUri));
        }
Exemplo n.º 2
0
 public EnchiladaFileProviderResolver(EnchiladaConfiguration enchiladaConfiguration = null)
 {
     this.enchiladaConfiguration = enchiladaConfiguration;
 }