public static CloudClient Build() { var builder = new CloudClientBuilder(); builder.Serialization.UseProtoBufMessageSerializer(); builder.Azure.LoadStorageAccountFromSettings( () => new CloudSettingsProvider().GetString("StorageConnectionString") .ExposeException("StorageConnectionString was not found in the role configuration.") ); builder.Domain(db => { db.WithDefaultInterfaces(); db.InAssemblyOf <CreateEvent>(); }); builder.Builder.RegisterModule(new MvcModule()); return(builder.BuildFor("messages")); }
public static CloudClient Build() { var builder = new CloudClientBuilder(); builder.Serialization.UseProtoBufMessageSerializer(); builder.Azure.LoadStorageAccountFromSettings( () => new CloudSettingsProvider().GetString("StorageConnectionString") .ExposeException("StorageConnectionString was not found in the role configuration.") ); builder.Domain(db => { db.WithDefaultInterfaces(); db.InAssemblyOf<CreateEvent>(); }); builder.Builder.RegisterModule(new MvcModule()); return builder.BuildFor("messages"); }