Beispiel #1
0
 /// <summary>
 /// Prepares the Builder ready for use. This must be called before your first call to the <see cref="Run"/> method.
 /// This method is idempotent.
 /// </summary>
 /// <returns>the same Builder instance</returns>
 public GenerateAesKeyBuilder Build()
 {
     Contract.Ensures(Contract.Result <GenerateAesKeyBuilder>() != null);
     Contract.Ensures(IsBuilt);
     //
     _workflow = new GenerateKeyWorkflow <AesKey, AesKeyGenerationOptions, SymmetricKeyFilePersisterOptions>(new AesKeyGenerator(), _persister);
     IsBuilt   = true;
     return(this);
 }
Beispiel #2
0
 protected override void SetWorkflowToNull()
 {
     _workflow = null;
 }