Example #1
0
        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"));
        }
Example #2
0
        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");
        }