internal static void RegisterServices()
        {
            ServiceLocator.AddSingleton(typeof(IConfiguration), typeof(Configuration));
            ServiceLocator.AddSingleton(typeof(ICosmosDbAccess), typeof(CosmosDbAccess));
            ServiceLocator.AddSingleton(typeof(IChangeTracker), typeof(ChangeTracker));
            ServiceLocator.AddSingleton(typeof(IDocumentHashCalculator), typeof(DocumentHashCalculator));

            ServiceLocator.AddTransient(typeof(IChangeTrackingStoreEnsurer), typeof(ChangeTrackingStoreEnsurer));
        }
Exemple #2
0
 public static void Init()
 {
     ServiceLocator.AddSingleton <IAccountProvider, AccountProvider>();
 }
 public static void Init()
 {
     Bootstrapper.Init();
     ServiceLocator.AddSingleton <IConnectionProvider, WebConnectionProvider>();
 }