private static void RegisterDependencies(Container container) { //Register all your dependencies container.Register<ICacheClient>(new MemoryCacheClient()); container.Register<IAuth>(new PasswordAuth()); container.Register<IRepository>(AzureStorage.CreateSingleton( RoleEnvironment.GetConfigurationSettingValue("StorageConnectionString") )); container.RegisterAutoWired<XpmsAuthProvider>().ReusedWithin(ReuseScope.Hierarchy); container.RegisterProcesses<AbstractProcess>(); container.RegisterValidators(typeof(SignupRequestValidator).Assembly); container.RegisterDataRecords<IRepoData>(typeof(AzureStorage).Assembly); }