private BaseActor CreateActor(ActorName actorName) { BaseActor actor = null; switch (actorName.Type) { case ActorTypeEnum.AdtPatientRegistration: actor = new AdtPatientRegistrationActor(actorName.Id, this); break; case ActorTypeEnum.OrderPlacer: actor = new OrderPlacerActor(actorName.Id, this); break; case ActorTypeEnum.DssOrderFiller: actor = new DssOrderFillerActor(actorName.Id, this); break; case ActorTypeEnum.AcquisitionModality: actor = new AcquisitionModalityActor(actorName.Id, this); break; case ActorTypeEnum.ImageManager: actor = new ImageManagerActor(actorName.Id, this); break; case ActorTypeEnum.ImageArchive: actor = new ImageArchiveActor(actorName.Id, this); break; case ActorTypeEnum.PerformedProcedureStepManager: actor = new PpsManagerActor(actorName.Id, this); break; case ActorTypeEnum.EvidenceCreator: actor = new EvidenceCreatorActor(actorName.Id, this); break; case ActorTypeEnum.ImageDisplay: actor = new ImageDisplayActor(actorName.Id, this); break; // case ActorTypeEnum.ReportManager: // actor = new ReportManagerActor(actorName.Id, this); // break; case ActorTypeEnum.PrintComposer: actor = new PrintComposerActor(actorName.Id, this); break; case ActorTypeEnum.PrintServer: actor = new PrintServerActor(actorName.Id, this); break; case ActorTypeEnum.Unknown: default: break; } return(actor); }
private BaseActor CreateActor(System.String actorNameString) { BaseActor actor = null; ActorNameEnum actorName = ActorNames.NameEnum(actorNameString); switch(actorName) { case ActorNameEnum.AdtPatientRegistration: actor = new AdtPatientRegistrationActor(_actorsTransactionLog); break; case ActorNameEnum.OrderPlacer: actor = new OrderPlacerActor(_actorsTransactionLog); break; case ActorNameEnum.DssOrderFiller: actor = new DssOrderFillerActor(_actorsTransactionLog); break; case ActorNameEnum.AcquisitionModality: actor = new AcquisitionModalityActor(_actorsTransactionLog); break; case ActorNameEnum.ImageManager: actor = new ImageManagerActor(_actorsTransactionLog); break; case ActorNameEnum.ImageArchive: actor = new ImageArchiveActor(_actorsTransactionLog); break; case ActorNameEnum.PerformedProcedureStepManager: actor = new PpsManagerActor(_actorsTransactionLog); break; case ActorNameEnum.EvidenceCreator: actor = new EvidenceCreatorActor(_actorsTransactionLog); break; // case ActorNameEnum.ReportManager: // actor = new ReportManagerActor(_actorsTransactionLog); // break; case ActorNameEnum.PrintComposer: actor = new PrintComposerActor(_actorsTransactionLog); break; case ActorNameEnum.PrintServer: actor = new PrintServerActor(_actorsTransactionLog); break; case ActorNameEnum.Unknown: default: break; } return actor; }