コード例 #1
0
            public ICommand Create(Type type)
            {
                if (type == typeof(CreatedByFactory))
                {
                    _instance = new CreatedByFactory("ctor!!");
                    return(_instance);
                }

                throw new ArgumentException($"Unknown command type: {type}");
            }
コード例 #2
0
ファイル: TestCommand.cs プロジェクト: rebus-org/GoCommando
            public ICommand Create(Type type)
            {
                if (type == typeof(CreatedByFactory))
                {
                    _instance = new CreatedByFactory("ctor!!");
                    return _instance;
                }

                throw new ArgumentException($"Unknown command type: {type}");
            }