Beispiel #1
0
 /// <remarks></remarks>
 protected CloudStorageBuilder()
 {
     // defaults
     DataSerializer = new CloudFormatter();
 }
 /// <remarks></remarks>
 protected CloudStorageBuilder()
 {
     // defaults
     DataSerializer = new CloudFormatter();
 }
            /// <remarks></remarks>
            public CloudStorageProviders BuildStorageProviders()
            {
                var blobStorage = BuildBlobStorage();
                var queueStorage = BuildQueueStorage();
                var tableStorage = BuildTableStorage();

                var originalSerializer = DataSerializer;

                DataSerializer = new CloudFormatter();
                var neutralBlobStorage = BuildBlobStorage();
                var neutralQueueStorage = BuildQueueStorage();
                var neutralTableStorage = BuildTableStorage();

                DataSerializer = new RawFormatter();
                var rawBlobStorage = BuildBlobStorage();

                DataSerializer = originalSerializer;

                return new CloudStorageProviders(
                    blobStorage,
                    queueStorage,
                    tableStorage,
                    neutralBlobStorage,
                    neutralQueueStorage,
                    neutralTableStorage,
                    rawBlobStorage,
                    RuntimeFinalizer);
            }